[commit: base] master: Follow changes in testsuite (c842f9b)

Ian Lynagh igloo at earth.li
Mon Feb 11 17:32:18 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/c842f9b79088a607e732796f1a48922c10442ef4

>---------------------------------------------------------------

commit c842f9b79088a607e732796f1a48922c10442ef4
Author: Ian Lynagh <ian at well-typed.com>
Date:   Mon Feb 11 15:50:14 2013 +0000

    Follow changes in testsuite

>---------------------------------------------------------------

 tests/IO/all.T      |    8 ++++----
 tests/Numeric/all.T |    2 +-
 tests/all.T         |   20 ++++++++++----------
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/tests/IO/all.T b/tests/IO/all.T
index 5eca472..2f8ddb1 100644
--- a/tests/IO/all.T
+++ b/tests/IO/all.T
@@ -73,19 +73,19 @@ test('openFile002',  exit_code(1), compile_and_run, [''])
 test('openFile003',  extra_clean(['openFile003Dir']), compile_and_run, [''])
 test('openFile004',  extra_clean(['openFile004.out']), compile_and_run, [''])
 test('openFile005',
-     [if_compiler_type('hugs', expect_fail),
+     [when(compiler_type('hugs'), expect_fail),
       extra_clean(['openFile005.out1', 'openFile005.out2'])],
      compile_and_run, [''])
 test('openFile006', extra_clean(['openFile006.out']), compile_and_run, [''])
 test('openFile007',
-     [if_compiler_type('hugs', expect_fail),
+     [when(compiler_type('hugs'), expect_fail),
       extra_clean(['openFile007.out'])],
      compile_and_run, [''])
 test('openFile008', cmd_prefix('ulimit -n 1024; '), compile_and_run, [''])
 
 test('putStr001',    normal, compile_and_run, [''])
 test('readFile001',
-     [if_compiler_type('hugs', expect_fail),
+     [when(compiler_type('hugs'), expect_fail),
       extra_clean(['readFile001.out'])],
      compile_and_run, [''])
 test('readwrite001',
@@ -103,7 +103,7 @@ test('readwrite002',
 test('readwrite003', extra_clean(['readwrite003.txt']), compile_and_run, [''])
 
 test('hGetBuf001', compose(only_compiler_types(['ghc']),
-		   compose(skip_if_fast,
+		   compose(when(fast(), skip),
 		     expect_fail_if_windows)), compile_and_run, ['-package unix'])
 
 test('hDuplicateTo001', extra_clean(['tmp']), compile_and_run, [''])
diff --git a/tests/Numeric/all.T b/tests/Numeric/all.T
index a6779b0..36b2d6f 100644
--- a/tests/Numeric/all.T
+++ b/tests/Numeric/all.T
@@ -6,7 +6,7 @@ test('num005', normal, compile_and_run, [''])
 test('num006', normal, compile_and_run, [''])
 test('num007', normal, compile_and_run, [''])
 test('num008', normal, compile_and_run, [''])
-test('num009', [ skip_if_fast
+test('num009', [ when(fast(), skip)
                , when(platform('i386-apple-darwin'), expect_broken(2370))
                , when(opsys('mingw32'), omit_ways(['ghci'])) ],
                # We get different results at 1e20 on x86/Windows, so there is
diff --git a/tests/all.T b/tests/all.T
index 0efbed9..671bf55 100644
--- a/tests/all.T
+++ b/tests/all.T
@@ -28,7 +28,7 @@ test('ix001', normal, compile_and_run, [''])
 
 # need to add -K64m to the compiler opts, so that GHCi gets it too
 test('ioref001',
-     [skip_if_fast,extra_run_opts('+RTS -K64m -RTS')],
+     [when(fast(), skip),extra_run_opts('+RTS -K64m -RTS')],
      compile_and_run,
      ['+RTS -K64m -RTS'])
 
@@ -74,25 +74,25 @@ test('dynamic002',      normal, compile_and_run, [''])
 test('dynamic003',      extra_run_opts('+RTS -K32m -RTS'), compile_and_run, [''])
 test('dynamic004',      normal, compile_and_run, [''])
 test('dynamic005',      normal, compile_and_run, [''])
-test('enum01',          skip_if_fast, compile_and_run, ['-cpp'])
-test('enum02', 		skip_if_fast, compile_and_run, ['-cpp'])
-test('enum03', 		skip_if_fast, compile_and_run, ['-cpp'])
+test('enum01',          when(fast(), skip), compile_and_run, ['-cpp'])
+test('enum02', 		when(fast(), skip), compile_and_run, ['-cpp'])
+test('enum03', 		when(fast(), skip), compile_and_run, ['-cpp'])
 test('enum04', 		normal, compile_and_run, [''])
 test('exceptionsrun001', 	normal, compile_and_run, [''])
 test('exceptionsrun002', 	normal, compile_and_run, [''])
-test('list001'	,	skip_if_fast, compile_and_run, [''])
-test('list002', skip_if_fast, compile_and_run, [''])
-test('list003', skip_if_fast, compile_and_run, [''])
+test('list001'	,	when(fast(), skip), compile_and_run, [''])
+test('list002', when(fast(), skip), compile_and_run, [''])
+test('list003', when(fast(), skip), compile_and_run, [''])
 
 test('memo001',
-     [skip_if_fast,
+     [when(fast(), skip),
       extra_run_opts('+RTS -A10k -RTS'),
       extra_clean(['Memo1.hi', 'Memo1.o'])],
      multimod_compile_and_run,
      ['memo001',''])
 
 test('memo002',
-     [skip_if_fast,
+     [when(fast(), skip),
       extra_run_opts('20'),
       extra_clean(['Memo2.hi', 'Memo2.o'])],
 	multimod_compile_and_run, ['memo002',''])
@@ -100,7 +100,7 @@ test('memo002',
 test('packedstring001', reqlib('packedstring'), compile_and_run, ['-package packedstring'])
 
 test('stableptr001',
-     [skip_if_fast, extra_run_opts('+RTS -K8m -RTS')],
+     [when(fast(), skip), extra_run_opts('+RTS -K8m -RTS')],
      compile_and_run, [''])
 test('stableptr003', normal, compile_and_run, [''])
 test('stableptr004', extra_run_opts('+RTS -K4m -RTS'), compile_and_run, [''])





More information about the ghc-commits mailing list