mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added Directory::cd test
This commit is contained in:
parent
67c28b7015
commit
ec027b707d
1 changed files with 5 additions and 1 deletions
|
@ -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.");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue