Test: Added Directory::cd test
This commit is contained in:
@@ -35,7 +35,7 @@ Context context;
|
||||
|
||||
int main (int, char**)
|
||||
{
|
||||
UnitTest t (111);
|
||||
UnitTest t (112);
|
||||
|
||||
// Ensure environment has no influence.
|
||||
unsetenv ("TASKDATA");
|
||||
@@ -284,6 +284,10 @@ int main (int, char**)
|
||||
d10.remove ();
|
||||
t.notok (d10.exists (), "Directory::remove temp/dir.perm file no longer exists");
|
||||
|
||||
// Directory::cd
|
||||
Directory d11 ("/tmp");
|
||||
t.ok (d11.cd (), "Directory::cd /tmp good");
|
||||
|
||||
tmp.remove ();
|
||||
t.notok (tmp.exists (), "tmp dir removed.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user