summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-03-15 00:39:59 +0000
committerIan Lynagh <ian@well-typed.com>2013-03-15 00:49:24 +0000
commit543641afc764d12092e000a75f6e200738e82dd1 (patch)
treee04b4e5019412d01dce0ed3d49084241e29913d4 /testsuite
parent6215d4c858c1502c6c1929521fdd7fd00f16bb2d (diff)
downloadhaskell-543641afc764d12092e000a75f6e200738e82dd1.tar.gz
Fix ghci058 with dynamic GHC
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/tests/ghci/scripts/all.T3
-rw-r--r--testsuite/tests/ghci/scripts/ghci058.script4
2 files changed, 4 insertions, 3 deletions
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index 7af3bf997a..12e185049e 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -137,7 +137,8 @@ test('T6106',
test('T6105', normal, ghci_script, ['T6105.script'])
test('T7117', normal, ghci_script, ['T7117.script'])
test('ghci058',
- extra_clean(['Ghci058.hs', 'Ghci058.hi', 'Ghci058.o']),
+ [extra_clean(['Ghci058.hs', 'Ghci058.hi', 'Ghci058.o']),
+ cmd_prefix('ghciWayFlags=' + config.ghci_way_flags)],
ghci_script,
['ghci058.script'])
test('T7587', normal, ghci_script, ['T7587.script'])
diff --git a/testsuite/tests/ghci/scripts/ghci058.script b/testsuite/tests/ghci/scripts/ghci058.script
index 03d7a3089f..a05aa73ccc 100644
--- a/testsuite/tests/ghci/scripts/ghci058.script
+++ b/testsuite/tests/ghci/scripts/ghci058.script
@@ -6,12 +6,12 @@
:set -v1
:shell echo "module Ghci058 where c = 'a'" > Ghci058.hs
-:shell "$HC" $HC_OPTS -fforce-recomp -c Ghci058.hs
+:shell "$HC" $HC_OPTS $ghciWayFlags -fforce-recomp -c Ghci058.hs
:l Ghci058
c
:shell echo "module Ghci058 where c = 'b'" > Ghci058.hs
-:shell "$HC" $HC_OPTS -fforce-recomp -c Ghci058.hs
+:shell "$HC" $HC_OPTS $ghciWayFlags -fforce-recomp -c Ghci058.hs
:l Ghci058
c