diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-11-17 12:32:15 +0000 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-11-17 12:32:15 +0000 |
commit | dbb8d7502c68511fbed57430b01be618279c1b4d (patch) | |
tree | 6367202d7053c833ce5fca97a9722da4ba556da1 | |
parent | 5cabf9ab3000d16c74d1018d7248e203f4ed7111 (diff) | |
download | haskell-dbb8d7502c68511fbed57430b01be618279c1b4d.tar.gz |
Fix Check09 test; it depended on the exact version number of bytestring
-rw-r--r-- | testsuite/tests/safeHaskell/check/all.T | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testsuite/tests/safeHaskell/check/all.T b/testsuite/tests/safeHaskell/check/all.T index 4cef8f8cc3..ca6ba0f372 100644 --- a/testsuite/tests/safeHaskell/check/all.T +++ b/testsuite/tests/safeHaskell/check/all.T @@ -7,6 +7,9 @@ def f( opts ): setTestOpts(f) +def normaliseBytestringPackage(str): + return re.sub('bytestring-[0-9]+(\.[0-9]+)*', 'bytestring-<VERSION>', str) + test('CheckA', normal, compile, ['']) test('CheckB', extra_clean(['CheckB_Aux.hi', 'CheckB_Aux.o']), @@ -58,7 +61,10 @@ test('Check08', multimod_compile_fail, ['Check08', '']) # check -distrust-all-packages flag works -test('Check09', normal, compile_fail, ['-fpackage-trust -distrust-all-packages']) +test('Check09', + normalise_errmsg_fun(normaliseBytestringPackage), + compile_fail, + ['-fpackage-trust -distrust-all-packages']) # as above but trust this time test('Check10', normal, compile, |