add a test for getDirectoryContents on a non-existent directory
[haskell-directory.git] / tests / all.T
index 217eeb3..2677813 100644 (file)
@@ -5,13 +5,17 @@ test('doesDirectoryExist001',   normal, compile_and_run, [''])
 # This test is a bit bogus.  Disable for GHCi.
 test('getDirContents001', omit_ways(['ghci']), compile_and_run, ['-fno-gen-manifest'])
 
+test('getDirContents002', exit_code(1), compile_and_run, [''])
+
 # Depends on binary from previous run, which gets removed by the driver way=ghci
 test('getPermissions001', omit_ways(['ghci']), compile_and_run, ['-cpp'])
 
-test('copyFile001',  normal, compile_and_run, [''])
-test('copyFile002',  normal, compile_and_run, [''])
+test('copyFile001',  extra_clean(['copyFile/target']), compile_and_run, [''])
+test('copyFile002',  extra_clean(['copyFile/target']), compile_and_run, [''])
 
 test('renameFile001', extra_clean(['renameFile001.tmp1','renameFile001.tmp2']),
       compile_and_run, [''])
 
 test('createDirectory001',  normal, compile_and_run, [''])
+
+test('createDirectoryIfMissing001',  normal, compile_and_run, [''])