Lines Matching full:directory
9 # Delete our directory if it's there
13 mkdir TMPDIR or plan skip_all => "Failed to make test directory";
15 # Test the directory was created
16 -d TMPDIR or plan skip_all => "Failed to make test directory";
19 if(mkdir TMPDIR) { plan skip_all => "Attempt to remake a directory succeeded";}
21 # See if we can remove the directory
22 rmdir TMPDIR or plan skip_all => "Failed to remove directory";
24 # Check that the directory was removed
25 if(-d TMPDIR) { plan skip_all => "Failed to delete test directory"; }
28 if(rmdir TMPDIR) { plan skip_all => "Able to rmdir directory twice"; }
32 # Create a directory (this should succeed)
39 ok(-d TMPDIR, "Successfully created test directory");
47 ok($@, "Re-creating directory causes failure.");
58 ok($@, "Re-creating directory causes failure.");
64 # Try to delete directory (this should succeed)
71 ok(! -d TMPDIR, "Successfully removed test directory");
73 # Try to delete directory again (this should fail)
79 ok($@, "Re-deleting directory causes failure.");