From ec027b707d22522bedffdc8c500623b03709950e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 28 Oct 2015 11:17:26 -0400 Subject: [PATCH] Test: Added Directory::cd test --- test/fs.t.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/fs.t.cpp b/test/fs.t.cpp index d5478a7bd..509474384 100644 --- a/test/fs.t.cpp +++ b/test/fs.t.cpp @@ -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.");