summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorSergei Trofimovich <siarheit@google.com>2015-06-20 10:24:40 +0100
committerSergei Trofimovich <siarheit@google.com>2015-06-20 10:57:21 +0100
commit2c6a0411dcd921ea6ec1cbe5eaf93d17adcf33a2 (patch)
tree4f5fa405a2a5379fce8be4af868e360041fe9f13 /testsuite
parent7c2293a07fb057e492278f46e8fde48b69d178a3 (diff)
downloadhaskell-2c6a0411dcd921ea6ec1cbe5eaf93d17adcf33a2.tar.gz
Fix a couple of tests for GHCi/-O* (Trac #10052)
Tests use unboxed types (or optimizer gets to them), those can't be handled by ghci. Fixed by using -fobject-code. Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/tests/codeGen/should_run/all.T3
-rw-r--r--testsuite/tests/perf/should_run/all.T3
-rw-r--r--testsuite/tests/programs/joao-circular/test.T1
-rwxr-xr-xtestsuite/tests/typecheck/should_run/all.T3
4 files changed, 7 insertions, 3 deletions
diff --git a/testsuite/tests/codeGen/should_run/all.T b/testsuite/tests/codeGen/should_run/all.T
index 59e4dca6b2..9125f0bd2d 100644
--- a/testsuite/tests/codeGen/should_run/all.T
+++ b/testsuite/tests/codeGen/should_run/all.T
@@ -119,7 +119,8 @@ test('CgStaticPointers',
, when(doing_ghci(), extra_hc_opts('-fobject-code'))
],
compile_and_run, [''])
-test('StaticArraySize', normal, compile_and_run, ['-O2'])
+test('StaticArraySize', [when(doing_ghci(), extra_hc_opts('-fobject-code'))],
+ compile_and_run, ['-O2'])
test('StaticByteArraySize', normal, compile_and_run, ['-O2'])
test('CopySmallArray', normal, compile_and_run, [''])
test('CopySmallArrayStressTest', reqlib('random'), compile_and_run, [''])
diff --git a/testsuite/tests/perf/should_run/all.T b/testsuite/tests/perf/should_run/all.T
index 6302022447..43b24f7eef 100644
--- a/testsuite/tests/perf/should_run/all.T
+++ b/testsuite/tests/perf/should_run/all.T
@@ -39,7 +39,8 @@ test('T4830',
compile_and_run,
['-O2'])
-test('T3245', normal, compile_and_run, ['-O'])
+test('T3245', [when(doing_ghci(), extra_hc_opts('-fobject-code'))],
+ compile_and_run, ['-O'])
# Test that bytestring reading/writing isn't over-allocating. We had
# a bug in hGetBufNonBlocking in 6.13 that triggered this.
diff --git a/testsuite/tests/programs/joao-circular/test.T b/testsuite/tests/programs/joao-circular/test.T
index 3f229ab47b..3fbf054790 100644
--- a/testsuite/tests/programs/joao-circular/test.T
+++ b/testsuite/tests/programs/joao-circular/test.T
@@ -1,5 +1,6 @@
test('joao-circular',
[when(fast(), skip),
+ when(doing_ghci(), extra_hc_opts('-fobject-code')),
extra_clean(['Data_Lazy.hi', 'Data_Lazy.o',
'Funcs_Lexer.hi', 'Funcs_Lexer.o',
'Funcs_Parser_Lazy.hi', 'Funcs_Parser_Lazy.o',
diff --git a/testsuite/tests/typecheck/should_run/all.T b/testsuite/tests/typecheck/should_run/all.T
index 9cf7a806d0..4195ca8715 100755
--- a/testsuite/tests/typecheck/should_run/all.T
+++ b/testsuite/tests/typecheck/should_run/all.T
@@ -40,7 +40,8 @@ test('tcrun020', normal, compile_and_run, [''])
test('tcrun021', normal, compile_and_run, ['-package containers'])
test('tcrun022', [omit_ways(['ghci']),only_compiler_types(['ghc'])],
compile_and_run, ['-O'])
-test('tcrun023', normal, compile_and_run, ['-O'])
+test('tcrun023', [when(doing_ghci(), extra_hc_opts('-fobject-code'))],
+ compile_and_run, ['-O'])
test('tcrun024', normal, compile_and_run, ['-O'])
test('tcrun025', extra_clean(['TcRun025_B.hi', 'TcRun025_B.o']),
multimod_compile_and_run, ['tcrun025',''])