Testsuite: add/fix cleanup for certain tests
[ghc.git] / testsuite / tests / generics / all.T
index 98116ec..9a2103f 100644 (file)
@@ -19,12 +19,12 @@ test('GenCannotDoRep1_6', normal, compile_fail, [''])
 test('GenCannotDoRep1_7', normal, compile_fail, [''])
 test('GenCannotDoRep1_8', normal, compile_fail, [''])
 
-test('T5462Yes1', extra_clean(['T5462Yes1/GFunctor.hi'])
-    , multimod_compile_and_run, ['T5462Yes1', '-iGEq -iGEnum -iGFunctor -outputdir=out_T5462Yes1'])
-test('T5462Yes2', extra_clean(['T5462Yes2/GFunctor.hi'])
-    , multimod_compile_and_run, ['T5462Yes2', '-iGFunctor -outputdir=out_T5462Yes2'])
-test('T5462No1', extra_clean(['T5462No1/GFunctor.hi'])
-     , multimod_compile_fail, ['T5462No1', '-iGFunctor -outputdir=T5462No1'])
+test('T5462Yes1', outputdir('out_T5462Yes1')
+    , multimod_compile_and_run, ['T5462Yes1', '-iGEq -iGEnum -iGFunctor'])
+test('T5462Yes2', outputdir('out_T5462Yes2')
+    , multimod_compile_and_run, ['T5462Yes2', '-iGFunctor'])
+test('T5462No1', outputdir('out_T5462No1')
+    , multimod_compile_fail, ['T5462No1', '-iGFunctor'])
 
 test('T5884',      extra_clean(['T5884Other.o', 'T5884Other.hi'])
     , multimod_compile, ['T5884Other', '-v0'])