Run T7478, plugins06, T7918 only when dynamic libraries are available
authorJoachim Breitner <mail@joachim-breitner.de>
Tue, 12 Nov 2013 10:08:36 +0000 (11:08 +0100)
committerJoachim Breitner <mail@joachim-breitner.de>
Tue, 12 Nov 2013 10:08:36 +0000 (11:08 +0100)
as they fail in a non-helpful way otherwise. This should help the
testsuite pass on travis.

testsuite/tests/ghc-api/T7478/all.T
testsuite/tests/plugins/all.T
testsuite/tests/quasiquotation/all.T

index 71a4a84..2d6fb08 100644 (file)
@@ -1,2 +1,8 @@
-test('T7478', [extra_clean(['A','A.exe','B.o','B.hi','C.o','C.hi']), when(opsys('darwin'), expect_broken(8294))], run_command, ['$MAKE -s --no-print-directory T7478'])
+test('T7478',
+  [ unless(have_dynamic(),skip),
+  , extra_clean(['A','A.exe','B.o','B.hi','C.o','C.hi'])
+  , when(opsys('darwin'), expect_broken(8294))
+  ],
+  run_command,
+  ['$MAKE -s --no-print-directory T7478'])
 
index 8f611c8..7e5f9b4 100644 (file)
@@ -34,6 +34,7 @@ test('plugins05',
 
 test('plugins06',
      [ extra_clean(['LinkerTicklingPlugin.hi', 'LinkerTicklingPlugin.o']),
+       unless(have_dynamic(),skip),
        only_ways([config.ghc_plugin_way]) ],
      multimod_compile_and_run, ['plugins06', '-package ghc'])
 
index 9f0335a..5ccfc21 100644 (file)
@@ -12,6 +12,7 @@ test('T7918',
        extra_run_opts('"' + config.libdir + '"'),
        only_compiler_types(['ghc']),
        only_ways(['normal']),
+       unless(have_dynamic(),skip),
        extra_clean(['T7918A.hi', 'T7918A.o', 'T7918A.dyn_hi', 'T7918A.dyn_o', 
                     'T7918B.hi', 'T7918B.o', 'T7918B.dyn_hi', 'T7918B.dyn_o'])],
       compile_and_run,