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

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


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

On branch  : master

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

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

commit aa6bb02a69559472a76ce1aee4a9cdfb7be0ee42
Author: Ian Lynagh <ian at well-typed.com>
Date:   Mon Feb 11 14:09:32 2013 +0000

    Follow changes in the testsuite

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

 tests/IO/all.T      |    6 +++---
 tests/Numeric/all.T |    2 +-
 tests/System/all.T  |    2 +-
 tests/all.T         |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/IO/all.T b/tests/IO/all.T
index 3437981..5eca472 100644
--- a/tests/IO/all.T
+++ b/tests/IO/all.T
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 
 def expect_fail_if_windows(name, opts):
-   f = if_os('mingw32', expect_fail);
+   f = when(opsys('mingw32'), expect_fail);
    return f(normal, opts);
 
 test('IOError001', compose(omit_ways(['ghci']), set_stdin('IOError001.hs')),
@@ -119,7 +119,7 @@ test('concio002', reqlib('process'), compile_and_run, [''])
 
 test('T2122', extra_clean(['T2122-test']), compile_and_run, [''])
 test('T3307',
-     [if_msys(expect_broken(5599)),
+     [when(msys(), expect_broken(5599)),
       extra_clean(['chinese-file-小说', 'chinese-name'])],
      run_command,
      ['$MAKE -s --no-print-directory T3307-test'])
@@ -144,7 +144,7 @@ test('encoding001',
 test('encoding002', normal, compile_and_run, [''])
 
 test('environment001',
-     [if_msys(expect_broken(5599)),
+     [when(msys(), expect_broken(5599)),
       extra_clean(['environment001'])],
      run_command,
      ['$MAKE -s --no-print-directory environment001-test'])
diff --git a/tests/Numeric/all.T b/tests/Numeric/all.T
index 1c6e9ea..a6779b0 100644
--- a/tests/Numeric/all.T
+++ b/tests/Numeric/all.T
@@ -8,7 +8,7 @@ test('num007', normal, compile_and_run, [''])
 test('num008', normal, compile_and_run, [''])
 test('num009', [ skip_if_fast
                , when(platform('i386-apple-darwin'), expect_broken(2370))
-               , if_os('mingw32', omit_ways(['ghci'])) ],
+               , when(opsys('mingw32'), omit_ways(['ghci'])) ],
                # We get different results at 1e20 on x86/Windows, so there is
                # a special output file for that.  I (SDM) don't think these are
                # serious, since the results for lower numbers are all fine.
diff --git a/tests/System/all.T b/tests/System/all.T
index 60ce86c..96f362e 100644
--- a/tests/System/all.T
+++ b/tests/System/all.T
@@ -4,6 +4,6 @@ test('getArgs001',  normal, compile_and_run, [''])
 test('getEnv001',   normal, compile_and_run, [''])
 test('T5930',   normal, compile_and_run, [''])
 
-test('system001',   if_os("mingw32", expect_fail), \
+test('system001',   when(opsys("mingw32"), expect_fail), \
 	compile_and_run, [''])
 
diff --git a/tests/all.T b/tests/all.T
index 1344a83..0efbed9 100644
--- a/tests/all.T
+++ b/tests/all.T
@@ -114,7 +114,7 @@ test('weak001', normal, compile_and_run, [''])
 #     cat: write error: Permission denied
 # Seems to be a known problem, e.g.
 #     http://mingw-users.1079350.n2.nabble.com/Bug-re-Unicode-on-the-console-td3121717.html
-test('T4006', if_msys(expect_fail), compile_and_run, [''])
+test('T4006', when(msys(), expect_fail), compile_and_run, [''])
 
 test('T5943', normal, compile_and_run, [''])
 test('T5962', normal, compile_and_run, [''])





More information about the ghc-commits mailing list