mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 10:43:24 +00:00
Added OS_CurrentProcessDirectory test.
This commit is contained in:
parent
1eaee30e85
commit
56510eb5cb
@ -586,6 +586,18 @@ int FilesTest::SpecialSystemDirectories()
|
||||
mConsole << "nsnull" << nsEndl;
|
||||
return Failed();
|
||||
}
|
||||
|
||||
systemDir = nsSpecialSystemDirectory::OS_CurrentProcessDirectory;
|
||||
mConsole << "OS_CurrentProcessDirectory yields \t";
|
||||
if (systemDir.Valid())
|
||||
{
|
||||
(nsOutputStream)mConsole << systemDir << nsEndl;
|
||||
}
|
||||
else
|
||||
{
|
||||
mConsole << "nsnull" << nsEndl;
|
||||
return Failed();
|
||||
}
|
||||
|
||||
#ifdef XP_MAC
|
||||
systemDir = nsSpecialSystemDirectory::Mac_SystemDirectory;
|
||||
@ -839,7 +851,6 @@ int FilesTest::RunAllTests()
|
||||
Banner("Move");
|
||||
if (Move("mumble/moveFile.txt", "mumble/move") != 0)
|
||||
return -1;
|
||||
|
||||
Banner("Execute");
|
||||
#ifdef XP_MAC
|
||||
// This path is hard-coded to test on jrm's machine. Finding an app
|
||||
|
@ -586,6 +586,18 @@ int FilesTest::SpecialSystemDirectories()
|
||||
mConsole << "nsnull" << nsEndl;
|
||||
return Failed();
|
||||
}
|
||||
|
||||
systemDir = nsSpecialSystemDirectory::OS_CurrentProcessDirectory;
|
||||
mConsole << "OS_CurrentProcessDirectory yields \t";
|
||||
if (systemDir.Valid())
|
||||
{
|
||||
(nsOutputStream)mConsole << systemDir << nsEndl;
|
||||
}
|
||||
else
|
||||
{
|
||||
mConsole << "nsnull" << nsEndl;
|
||||
return Failed();
|
||||
}
|
||||
|
||||
#ifdef XP_MAC
|
||||
systemDir = nsSpecialSystemDirectory::Mac_SystemDirectory;
|
||||
@ -839,7 +851,6 @@ int FilesTest::RunAllTests()
|
||||
Banner("Move");
|
||||
if (Move("mumble/moveFile.txt", "mumble/move") != 0)
|
||||
return -1;
|
||||
|
||||
Banner("Execute");
|
||||
#ifdef XP_MAC
|
||||
// This path is hard-coded to test on jrm's machine. Finding an app
|
||||
|
Loading…
Reference in New Issue
Block a user