diff options
author | Ian Lynagh <ian@well-typed.com> | 2013-02-11 15:07:12 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2013-02-11 15:07:12 +0000 |
commit | 8d34b5c785c56d68765e70e74e73be45be419df8 (patch) | |
tree | 1e08c26aad57c6af5559e95a265603ae454acc42 /testsuite/tests | |
parent | 7cc907d310b9be716b50279d6545698dee346fb6 (diff) | |
download | haskell-8d34b5c785c56d68765e70e74e73be45be419df8.tar.gz |
Convert more helper functions
Diffstat (limited to 'testsuite/tests')
34 files changed, 53 insertions, 53 deletions
diff --git a/testsuite/tests/annotations/should_compile/all.T b/testsuite/tests/annotations/should_compile/all.T index e13c24e72b..1c6690b2b8 100644 --- a/testsuite/tests/annotations/should_compile/all.T +++ b/testsuite/tests/annotations/should_compile/all.T @@ -1,5 +1,5 @@ -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) # Annotations, like Template Haskell, require runtime evaluation. In # order for this to work with profiling, we would have to build the diff --git a/testsuite/tests/annotations/should_run/all.T b/testsuite/tests/annotations/should_run/all.T index 871b409164..6616de5df4 100644 --- a/testsuite/tests/annotations/should_run/all.T +++ b/testsuite/tests/annotations/should_run/all.T @@ -1,4 +1,4 @@ -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) # These tests are very slow due to their use of package GHC setTestOpts(skip_if_fast) diff --git a/testsuite/tests/arrows/should_fail/all.T b/testsuite/tests/arrows/should_fail/all.T index 5579294541..6b7920d318 100644 --- a/testsuite/tests/arrows/should_fail/all.T +++ b/testsuite/tests/arrows/should_fail/all.T @@ -1,7 +1,7 @@ setTestOpts(only_compiler_types(['ghc'])) test('arrowfail001', - if_compiler_debugged(expect_broken(5267)), + when(compiler_debugged(), expect_broken(5267)), compile_fail, ['']) # arrowfail001 gets an ASSERT error in the stage1 compiler diff --git a/testsuite/tests/concurrent/should_run/all.T b/testsuite/tests/concurrent/should_run/all.T index f0a68dea41..d5ceb72575 100644 --- a/testsuite/tests/concurrent/should_run/all.T +++ b/testsuite/tests/concurrent/should_run/all.T @@ -53,7 +53,7 @@ test('numsparks001', only_ways(['threaded1']), compile_and_run, ['']) test('T4262', [ skip, # skip for now, it doesn't give reliable results only_ways(['threaded1']), unless(opsys('linux'),skip), - if_compiler_lt('ghc', '7.1', expect_fail) ], + when(compiler_lt('ghc', '7.1'), expect_fail) ], compile_and_run, ['']) test('T4813', normal, compile_and_run, ['']) diff --git a/testsuite/tests/deSugar/should_compile/all.T b/testsuite/tests/deSugar/should_compile/all.T index 979b1e7640..6328b3048c 100644 --- a/testsuite/tests/deSugar/should_compile/all.T +++ b/testsuite/tests/deSugar/should_compile/all.T @@ -76,7 +76,7 @@ test('GadtOverlap', normal, compile, ['-Wall']) test('T2395', normal, compile, ['']) test('T4371', normal, compile, ['']) test('T4439', normal, compile, ['']) -test('T4488', if_compiler_lt('ghc', '7.1', expect_fail), compile, ['']) +test('T4488', when(compiler_lt('ghc', '7.1'), expect_fail), compile, ['']) test('T4870', [only_ways(['optasm']), only_compiler_types(['ghc']), diff --git a/testsuite/tests/deSugar/should_run/all.T b/testsuite/tests/deSugar/should_run/all.T index 7f0df9c0ff..90d76a9647 100644 --- a/testsuite/tests/deSugar/should_run/all.T +++ b/testsuite/tests/deSugar/should_run/all.T @@ -38,5 +38,5 @@ test('mc06', normal, compile_and_run, ['']) test('mc07', normal, compile_and_run, ['']) test('mc08', normal, compile_and_run, ['']) test('T5742', normal, compile_and_run, ['']) -test('DsLambdaCase', if_compiler_lt('ghc', '7.5', skip), compile_and_run, ['']) -test('DsMultiWayIf', if_compiler_lt('ghc', '7.5', skip), compile_and_run, ['']) +test('DsLambdaCase', when(compiler_lt('ghc', '7.5'), skip), compile_and_run, ['']) +test('DsMultiWayIf', when(compiler_lt('ghc', '7.5'), skip), compile_and_run, ['']) diff --git a/testsuite/tests/gadt/all.T b/testsuite/tests/gadt/all.T index 1b46565fd8..d55aef64e2 100644 --- a/testsuite/tests/gadt/all.T +++ b/testsuite/tests/gadt/all.T @@ -102,10 +102,10 @@ test('gadt25', normal, compile, ['']) test('T3651', normal, compile_fail, ['']) test('T3638', normal, compile, ['']) -test('gadtSyntax001', if_compiler_lt('ghc', '7.1', expect_fail), compile, ['']) -test('gadtSyntaxFail001', if_compiler_lt('ghc', '7.1', expect_fail), compile_fail, ['']) -test('gadtSyntaxFail002', if_compiler_lt('ghc', '7.1', expect_fail), compile_fail, ['']) -test('gadtSyntaxFail003', if_compiler_lt('ghc', '7.1', expect_fail), compile_fail, ['']) +test('gadtSyntax001', when(compiler_lt('ghc', '7.1'), expect_fail), compile, ['']) +test('gadtSyntaxFail001', when(compiler_lt('ghc', '7.1'), expect_fail), compile_fail, ['']) +test('gadtSyntaxFail002', when(compiler_lt('ghc', '7.1'), expect_fail), compile_fail, ['']) +test('gadtSyntaxFail003', when(compiler_lt('ghc', '7.1'), expect_fail), compile_fail, ['']) test('T3169', normal, compile_fail, ['']) test('T5424', extra_clean(['T5424a.hi', 'T5424a.o']), diff --git a/testsuite/tests/ghc-e/should_run/all.T b/testsuite/tests/ghc-e/should_run/all.T index da14b703c2..4ab7567358 100644 --- a/testsuite/tests/ghc-e/should_run/all.T +++ b/testsuite/tests/ghc-e/should_run/all.T @@ -1,5 +1,5 @@ -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) test('ghc-e001', req_interp, run_command, ['$MAKE --no-print-directory -s ghc-e001']) test('ghc-e002', req_interp, run_command, ['$MAKE --no-print-directory -s ghc-e002']) @@ -8,7 +8,7 @@ test('ghc-e004', req_interp, run_command, ['$MAKE --no-print-directory -s ghc-e0 test('ghc-e005', req_interp, run_command, ['$MAKE --no-print-directory -s ghc-e005']) test('T2228', - [req_interp, if_ghci_dynamic(expect_broken(7298))], + [req_interp, when(ghci_dynamic(), expect_broken(7298))], run_command, ['$MAKE --no-print-directory -s T2228']) test('T2636', req_interp, run_command, ['$MAKE --no-print-directory -s T2636']) diff --git a/testsuite/tests/ghci.debugger/scripts/all.T b/testsuite/tests/ghci.debugger/scripts/all.T index 9eef1f62b2..76a8f0ff57 100644 --- a/testsuite/tests/ghci.debugger/scripts/all.T +++ b/testsuite/tests/ghci.debugger/scripts/all.T @@ -1,5 +1,5 @@ setTestOpts(composes([extra_run_opts('-ignore-dot-ghci'), - if_compiler_profiled(skip), + when(compiler_profiled(), skip), normalise_slashes])) test('print001', normal, ghci_script, ['print001.script']) @@ -36,7 +36,7 @@ test('print032', normal, ghci_script, ['print032.script']) test('print033', normal, ghci_script, ['print033.script']) test('print034', normal, ghci_script, ['print034.script']) test('print035', - if_ghci_dynamic(expect_broken(7326)), + when(ghci_dynamic(), expect_broken(7326)), ghci_script, ['print035.script']) diff --git a/testsuite/tests/ghci.debugger/scripts/break022/all.T b/testsuite/tests/ghci.debugger/scripts/break022/all.T index d8cf081ed2..497ad7e417 100644 --- a/testsuite/tests/ghci.debugger/scripts/break022/all.T +++ b/testsuite/tests/ghci.debugger/scripts/break022/all.T @@ -1,4 +1,4 @@ setTestOpts(extra_run_opts('-ignore-dot-ghci')) -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) test('break022', extra_clean(['A.hs']), ghci_script, ['break022.script']) diff --git a/testsuite/tests/ghci.debugger/scripts/break023/all.T b/testsuite/tests/ghci.debugger/scripts/break023/all.T index 0c33302e43..22b608e317 100644 --- a/testsuite/tests/ghci.debugger/scripts/break023/all.T +++ b/testsuite/tests/ghci.debugger/scripts/break023/all.T @@ -1,4 +1,4 @@ setTestOpts(extra_run_opts('-ignore-dot-ghci')) -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) test('break023', extra_clean(['A.hs']), ghci_script, ['break023.script']) diff --git a/testsuite/tests/ghci/linking/all.T b/testsuite/tests/ghci/linking/all.T index d4724ca1ee..ce00b3e58d 100644 --- a/testsuite/tests/ghci/linking/all.T +++ b/testsuite/tests/ghci/linking/all.T @@ -1,5 +1,5 @@ test('ghcilink001', - [if_ghci_dynamic(expect_fail), # dynamic ghci can't load '.a's + [when(ghci_dynamic(), expect_fail), # dynamic ghci can't load '.a's skip_if_no_ghci, extra_clean(['dir001/*','dir001'])], run_command, @@ -21,7 +21,7 @@ test('ghcilink003', ['$MAKE -s --no-print-directory ghcilink003']) test('ghcilink004', - [if_ghci_dynamic(expect_fail), # dynamic ghci can't load '.a's + [when(ghci_dynamic(), expect_fail), # dynamic ghci can't load '.a's skip_if_no_ghci, extra_clean(['dir004/*','dir004'])], run_command, diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T index 0b8f62e99f..e558bf6b2d 100755 --- a/testsuite/tests/ghci/scripts/all.T +++ b/testsuite/tests/ghci/scripts/all.T @@ -1,6 +1,6 @@ # coding=utf8 -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) test('ghci001', combined_output, ghci_script, ['ghci001.script']) test('ghci002', combined_output, ghci_script, ['ghci002.script']) diff --git a/testsuite/tests/ghci/should_run/all.T b/testsuite/tests/ghci/should_run/all.T index fa03ac1167..f4d06a6f99 100644 --- a/testsuite/tests/ghci/should_run/all.T +++ b/testsuite/tests/ghci/should_run/all.T @@ -1,5 +1,5 @@ -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) # We only want to run these tests with GHCi def just_ghci( name, opts ): diff --git a/testsuite/tests/indexed-types/should_compile/all.T b/testsuite/tests/indexed-types/should_compile/all.T index 019c5aca49..a73f5fd64c 100644 --- a/testsuite/tests/indexed-types/should_compile/all.T +++ b/testsuite/tests/indexed-types/should_compile/all.T @@ -159,7 +159,7 @@ test('T4484', normal, compile, ['']) test('T4492', normal, compile, ['']) test('T4494', normal, compile, ['']) test('DataFamDeriv', normal, compile, ['']) -test('T1769', if_compiler_lt('ghc', '7.1', expect_fail), compile, ['']) +test('T1769', when(compiler_lt('ghc', '7.1'), expect_fail), compile, ['']) test('T4497', normal, compile, ['']) test('T3484', normal, compile, ['']) test('T3460', normal, compile, ['']) diff --git a/testsuite/tests/indexed-types/should_fail/all.T b/testsuite/tests/indexed-types/should_fail/all.T index 19b05e63dd..e99b796760 100644 --- a/testsuite/tests/indexed-types/should_fail/all.T +++ b/testsuite/tests/indexed-types/should_fail/all.T @@ -65,7 +65,7 @@ test('T2239', normal, compile_fail, ['']) test('T3440', normal, compile_fail, ['']) test('T4485', normal, compile_fail, ['']) test('T4174', normal, compile_fail, ['']) -test('DerivUnsatFam', if_compiler_lt('ghc', '7.1', expect_fail), compile_fail, ['']) +test('DerivUnsatFam', when(compiler_lt('ghc', '7.1'), expect_fail), compile_fail, ['']) test('T2664', normal, compile_fail, ['']) test('T2664a', normal, compile, ['']) test('T2544', normal, compile_fail, ['']) diff --git a/testsuite/tests/layout/all.T b/testsuite/tests/layout/all.T index 026ad465a0..e8ed2fe5bc 100644 --- a/testsuite/tests/layout/all.T +++ b/testsuite/tests/layout/all.T @@ -39,7 +39,7 @@ test('layout007', [req_interp, extra_clean(['layout007.hi', 'layout007.o']), only_compiler_types(['ghc']), - if_compiler_profiled(skip)], + when(compiler_profiled(), skip)], run_command, ['$MAKE -s --no-print-directory layout007']) diff --git a/testsuite/tests/module/all.T b/testsuite/tests/module/all.T index b8a5355a97..8eaa1d5217 100644 --- a/testsuite/tests/module/all.T +++ b/testsuite/tests/module/all.T @@ -251,7 +251,7 @@ test('mod150', normal, compile_fail, ['']) test('mod151', normal, compile_fail, ['']) test('mod152', normal, compile_fail, ['']) test('mod153', normal, compile_fail, ['']) -test('mod154', if_compiler_type('hugs', expect_fail), compile, ['']) +test('mod154', when(compiler_type('hugs'), expect_fail), compile, ['']) test('mod155', normal, compile_fail, ['']) test('mod156', normal, compile, ['']) test('mod157', diff --git a/testsuite/tests/module/base01/all.T b/testsuite/tests/module/base01/all.T index d0dbb2960d..6fa3e5c377 100644 --- a/testsuite/tests/module/base01/all.T +++ b/testsuite/tests/module/base01/all.T @@ -1,7 +1,7 @@ setTestOpts(only_compiler_types(['ghc'])) test('base01', - [if_compiler_lt('ghc', '7.1', expect_fail), + [when(compiler_lt('ghc', '7.1'), expect_fail), normalise_slashes, clean_cmd('$MAKE -s clean')], run_command, diff --git a/testsuite/tests/parser/should_compile/all.T b/testsuite/tests/parser/should_compile/all.T index 9d3b4e698a..b10cd2ccfa 100644 --- a/testsuite/tests/parser/should_compile/all.T +++ b/testsuite/tests/parser/should_compile/all.T @@ -45,8 +45,8 @@ test('read029', normal, compile, ['']) test('read030', normal, compile, ['']) test('read031', normal, compile, ['']) test('read032', normal, compile, ['']) -test('read033', if_compiler_type('hugs', expect_fail), compile, ['']) -test('read034', if_compiler_type('hugs', expect_fail), compile, ['']) +test('read033', when(compiler_type('hugs'), expect_fail), compile, ['']) +test('read034', when(compiler_type('hugs'), expect_fail), compile, ['']) test('read036', normal, compile, ['']) test('read037', normal, compile, ['']) test('read038', normal, compile, ['']) @@ -90,7 +90,7 @@ test('NondecreasingIndentation', normal, compile, ['']) test('mc15', normal, compile, ['']) test('mc16', normal, compile, ['']) test('EmptyDecls', normal, compile, ['']) -test('ParserLambdaCase', if_compiler_lt('ghc', '7.5', skip), compile, ['']) +test('ParserLambdaCase', when(compiler_lt('ghc', '7.5'), skip), compile, ['']) test('T5243', extra_clean(['T5243A.hi', 'T5243A.o']), multimod_compile, ['T5243','']) diff --git a/testsuite/tests/parser/should_fail/all.T b/testsuite/tests/parser/should_fail/all.T index 114524affa..a09b76df18 100644 --- a/testsuite/tests/parser/should_fail/all.T +++ b/testsuite/tests/parser/should_fail/all.T @@ -23,7 +23,7 @@ test('readFail020', normal, compile_fail, ['']) # empty file (length zero) is not a legal Haskell module. It fails to compile # because it doesn't contain a definition of Main.main. GHC 5.02 crashed # on this example. -test('readFail021', if_compiler_type('hugs', expect_fail), compile_fail, ['']) +test('readFail021', when(compiler_type('hugs'), expect_fail), compile_fail, ['']) test('readFail022', normal, compile_fail, ['']) test('readFail023', normal, compile_fail, ['']) @@ -72,8 +72,8 @@ test('NondecreasingIndentationFail', normal, compile_fail, ['']) test('readFailTraditionalRecords1', normal, compile_fail, ['']) test('readFailTraditionalRecords2', normal, compile_fail, ['']) test('readFailTraditionalRecords3', normal, compile_fail, ['']) -test('ParserNoLambdaCase', if_compiler_lt('ghc', '7.5', skip), compile_fail, ['']) -test('ParserNoMultiWayIf', if_compiler_lt('ghc', '7.5', skip), compile_fail, ['']) +test('ParserNoLambdaCase', when(compiler_lt('ghc', '7.5'), skip), compile_fail, ['']) +test('ParserNoMultiWayIf', when(compiler_lt('ghc', '7.5'), skip), compile_fail, ['']) test('T5425', normal, compile_fail, ['']) test('T984', normal, compile_fail, ['']) diff --git a/testsuite/tests/parser/should_run/all.T b/testsuite/tests/parser/should_run/all.T index 03951a1edb..eee0330e5e 100644 --- a/testsuite/tests/parser/should_run/all.T +++ b/testsuite/tests/parser/should_run/all.T @@ -5,4 +5,4 @@ test('readRun004', normal, compile_and_run, ['-fobject-code']) test('T1344', normal, compile_and_run, ['']) test('operator', normal, compile_and_run, ['']) test('operator2', normal, compile_and_run, ['']) -test('ParserMultiWayIf', if_compiler_lt('ghc', '7.5', skip), compile_and_run, ['']) +test('ParserMultiWayIf', when(compiler_lt('ghc', '7.5'), skip), compile_and_run, ['']) diff --git a/testsuite/tests/perf/haddock/all.T b/testsuite/tests/perf/haddock/all.T index baeb1801ae..f8238df7e7 100644 --- a/testsuite/tests/perf/haddock/all.T +++ b/testsuite/tests/perf/haddock/all.T @@ -1,6 +1,6 @@ test('haddock.base', - [unless_in_tree_compiler(skip) + [unless(in_tree_compiler(), skip) ,stats_num_field('peak_megabytes_allocated', [(wordsize(64), 274, 10) # 2012-08-14: 240 (amd64/Linux) @@ -41,7 +41,7 @@ test('haddock.base', ['../../../../libraries/base/dist-install/doc/html/base/base.haddock.t']) test('haddock.Cabal', - [unless_in_tree_compiler(skip) + [unless(in_tree_compiler(), skip) ,stats_num_field('peak_megabytes_allocated', [(wordsize(64), 217, 10) # 2012-08-14: 202 (amd64/Linux) @@ -80,7 +80,7 @@ test('haddock.Cabal', ['../../../../libraries/Cabal/Cabal/dist-install/doc/html/Cabal/Cabal.haddock.t']) test('haddock.compiler', - [unless_in_tree_compiler(skip) + [unless(in_tree_compiler(), skip) ,stats_num_field('peak_megabytes_allocated', [(wordsize(64), 1240, 10) # 2012-08-14: 1203 (amd64/Linux) diff --git a/testsuite/tests/plugins/all.T b/testsuite/tests/plugins/all.T index 2f0fc44c9b..874fcdb408 100644 --- a/testsuite/tests/plugins/all.T +++ b/testsuite/tests/plugins/all.T @@ -3,7 +3,7 @@ def f(name, opts): opts.skip = 1 setTestOpts(f) -setTestOpts(if_compiler_lt('ghc', '7.1', skip)) +setTestOpts(when(compiler_lt('ghc', '7.1'), skip)) test('plugins01', [pre_cmd('$MAKE -s --no-print-directory -C simple-plugin package.plugins01'), diff --git a/testsuite/tests/programs/life_space_leak/test.T b/testsuite/tests/programs/life_space_leak/test.T index 417342f38e..a0cdc2c761 100644 --- a/testsuite/tests/programs/life_space_leak/test.T +++ b/testsuite/tests/programs/life_space_leak/test.T @@ -2,7 +2,7 @@ test('life_space_leak', [skip_if_fast, extra_clean(['Main.hi', 'Main.o']), - if_compiler_type('hugs', expect_fail)], + when(compiler_type('hugs'), expect_fail)], multimod_compile_and_run, ['Main', '']) diff --git a/testsuite/tests/rename/should_compile/all.T b/testsuite/tests/rename/should_compile/all.T index a1f1965bd1..db1f4913eb 100644 --- a/testsuite/tests/rename/should_compile/all.T +++ b/testsuite/tests/rename/should_compile/all.T @@ -161,7 +161,7 @@ test('T4240', ['$MAKE -s --no-print-directory T4240']) test('T4489', normal, compile, ['']) -test('T4478', if_compiler_lt('ghc', '7.1', expect_fail), compile, ['']) +test('T4478', when(compiler_lt('ghc', '7.1'), expect_fail), compile, ['']) test('T4534', normal, compile, ['']) test('mc09', normal, compile, ['']) diff --git a/testsuite/tests/rts/all.T b/testsuite/tests/rts/all.T index 2276d3587d..8da87aae6b 100644 --- a/testsuite/tests/rts/all.T +++ b/testsuite/tests/rts/all.T @@ -51,7 +51,7 @@ test('T2783', [ omit_ways(['ghci']), exit_code(1) ], compile_and_run, ['']) # Test the work-stealing deque implementation. We run this test in # both threaded1 (-threaded -debug) and threaded2 (-threaded) ways. -test('testwsdeque', [unless_in_tree_compiler(skip), +test('testwsdeque', [unless(in_tree_compiler(), skip), c_src, only_ways(['threaded1', 'threaded2'])], compile_and_run, ['-I../../../rts']) diff --git a/testsuite/tests/simplCore/should_compile/all.T b/testsuite/tests/simplCore/should_compile/all.T index 57871490ca..765a128268 100644 --- a/testsuite/tests/simplCore/should_compile/all.T +++ b/testsuite/tests/simplCore/should_compile/all.T @@ -64,7 +64,7 @@ test('T4908', only_ways(['optasm']), compile, ['-O2 -ddump-simpl -dsuppress-uniques']) -test('T4930', [if_compiler_lt('ghc', '7.1', expect_fail), +test('T4930', [when(compiler_lt('ghc', '7.1'), expect_fail), only_ways(['optasm'])], compile, ['-O -ddump-simpl -dsuppress-uniques']) @@ -109,7 +109,7 @@ test('T4918', ['$MAKE -s --no-print-directory T4918']) test('T4945', - if_compiler_lt('ghc', '7.1', expect_fail), + when(compiler_lt('ghc', '7.1'), expect_fail), run_command, ['$MAKE -s --no-print-directory T4945']) diff --git a/testsuite/tests/th/T2014/all.T b/testsuite/tests/th/T2014/all.T index 212690d6fe..77709c23c5 100644 --- a/testsuite/tests/th/T2014/all.T +++ b/testsuite/tests/th/T2014/all.T @@ -1,4 +1,4 @@ -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) test('T2014', [req_interp, diff --git a/testsuite/tests/th/TH_import_loop/TH_import_loop.T b/testsuite/tests/th/TH_import_loop/TH_import_loop.T index 37059e1d6c..8a4a180c28 100644 --- a/testsuite/tests/th/TH_import_loop/TH_import_loop.T +++ b/testsuite/tests/th/TH_import_loop/TH_import_loop.T @@ -1,5 +1,5 @@ -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) test('TH_import_loop', [extra_clean(['ModuleA.o-boot', 'ModuleA.hi-boot', diff --git a/testsuite/tests/th/TH_spliceViewPat/test.T b/testsuite/tests/th/TH_spliceViewPat/test.T index b177c075b3..23b4f6a1b1 100644 --- a/testsuite/tests/th/TH_spliceViewPat/test.T +++ b/testsuite/tests/th/TH_spliceViewPat/test.T @@ -6,7 +6,7 @@ def f(name, opts): setTestOpts(f) setTestOpts(only_compiler_types(['ghc'])) setTestOpts(only_ways(['normal','ghci'])) -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) test('TH_spliceViewPat', extra_clean(['Main.o', 'Main.hi', 'A.o', 'A.hi']), diff --git a/testsuite/tests/th/all.T b/testsuite/tests/th/all.T index e9c6c08cd1..caaa3df167 100644 --- a/testsuite/tests/th/all.T +++ b/testsuite/tests/th/all.T @@ -1,7 +1,7 @@ # This test needs to come before the setTestOpts calls below, as we want -# to run it !if_compiler_profiled -test('T4255', unless_compiler_profiled(skip), compile_fail, ['-v0']) +# to run it if !compiler_profiled +test('T4255', unless(compiler_profiled(), skip), compile_fail, ['-v0']) def f(name, opts): opts.extra_hc_opts = '-XTemplateHaskell -package template-haskell' @@ -11,7 +11,7 @@ def f(name, opts): setTestOpts(f) setTestOpts(only_compiler_types(['ghc'])) setTestOpts(only_ways(['normal','ghci'])) -setTestOpts(if_compiler_profiled(skip)) +setTestOpts(when(compiler_profiled(), skip)) test('TH_mkName', normal, compile, ['-v0']) test('TH_1tuple', normal, compile_fail, ['-v0']) diff --git a/testsuite/tests/typecheck/should_compile/all.T b/testsuite/tests/typecheck/should_compile/all.T index da91233691..0fdb2ad466 100644 --- a/testsuite/tests/typecheck/should_compile/all.T +++ b/testsuite/tests/typecheck/should_compile/all.T @@ -84,7 +84,7 @@ test('tc079', normal, compile, ['']) test('tc080', normal, compile, ['']) test('tc081', normal, compile, ['']) test('tc082', normal, compile, ['']) -test('tc084', if_compiler_type('hugs', expect_fail), compile, ['']) +test('tc084', when(compiler_type('hugs'), expect_fail), compile, ['']) test('tc085', only_compiler_types(['ghc']), compile, ['']) test('tc086', normal, compile, ['']) test('tc087', normal, compile, ['']) @@ -96,7 +96,7 @@ test('tc092', normal, compile, ['']) test('tc093', normal, compile, ['']) test('tc094', normal, compile, ['']) test('tc095', normal, compile, ['']) -test('tc096', if_compiler_type('hugs', expect_fail), compile, ['']) +test('tc096', when(compiler_type('hugs'), expect_fail), compile, ['']) test('tc097', normal, compile, ['']) test('tc098', normal, compile, ['']) test('tc099', normal, compile, ['']) @@ -380,7 +380,7 @@ test('T6055', normal, compile, ['']) test('DfltProb1', normal, compile, ['']) test('DfltProb2', normal, compile, ['']) test('T6134', normal, compile, ['']) -test('TcLambdaCase', if_compiler_lt('ghc', '7.5', skip), compile, ['']) +test('TcLambdaCase', when(compiler_lt('ghc', '7.5'), skip), compile, ['']) test('T7147', normal, compile, ['']) test('T7171',normal,run_command, ['$MAKE -s --no-print-directory T7171']) diff --git a/testsuite/tests/typecheck/should_fail/all.T b/testsuite/tests/typecheck/should_fail/all.T index 1241e587f7..9cffd3d98a 100644 --- a/testsuite/tests/typecheck/should_fail/all.T +++ b/testsuite/tests/typecheck/should_fail/all.T @@ -24,7 +24,7 @@ test('tcfail023', normal, compile_fail, ['']) test('tcfail027', normal, compile_fail, ['']) test('tcfail028', normal, compile_fail, ['']) test('tcfail029', normal, compile_fail, ['']) -test('tcfail030', if_compiler_type('hugs', expect_fail), compile_fail, ['']) +test('tcfail030', when(compiler_type('hugs'), expect_fail), compile_fail, ['']) test('tcfail031', normal, compile_fail, ['']) test('tcfail032', normal, compile_fail, ['']) test('tcfail033', normal, compile_fail, ['']) @@ -278,7 +278,7 @@ test('FDsFromGivens', normal, compile_fail, ['']) test('T7019', normal, compile_fail,['']) test('T7019a', normal, compile_fail,['']) test('T5978', normal, compile_fail, ['']) -test('TcMultiWayIfFail', if_compiler_lt('ghc', '7.5', skip), compile_fail, ['']) +test('TcMultiWayIfFail', when(compiler_lt('ghc', '7.5'), skip), compile_fail, ['']) test('T2534', normal, compile_fail, ['']) test('T7175', normal, compile_fail, ['']) test('T7210', normal, compile_fail, ['']) |