summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2022-08-15 13:02:28 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-08-16 14:34:11 -0400
commitf6a5524abaf744055e9bec40504c7eae28700537 (patch)
treebadf9511ccc1148630456608a8c4acd7aa7459ef
parent641105441d3ed7087c5d59187c8c94bc7bc08061 (diff)
downloadhaskell-f6a5524abaf744055e9bec40504c7eae28700537.tar.gz
Fix #21979 - compact-share failing with -O
I don't have good reason to believe the optimization level should affect if sharing works or not here. So limit the test to the normal way.
-rw-r--r--libraries/ghc-compact/tests/all.T4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/ghc-compact/tests/all.T b/libraries/ghc-compact/tests/all.T
index 21b6738903..92864e37bb 100644
--- a/libraries/ghc-compact/tests/all.T
+++ b/libraries/ghc-compact/tests/all.T
@@ -16,8 +16,8 @@ test('compact_pinned', exit_code(1), compile_and_run, [''])
test('compact_gc', [fragile_for(17253, ['ghci']), ignore_stdout], compile_and_run, [''])
# this test computes closure sizes and those are affected
# by the ghci and prof ways, because of BCOs and profiling headers.
-test('compact_share', omit_ways(['ghci', 'profasm', 'profthreaded']),
- compile_and_run, [''])
+# Optimization levels slightly change what is/isn't shared so only run in normal mode
+test('compact_share', only_ways(['normal']), compile_and_run, [''])
test('compact_bench', [ ignore_stdout, extra_run_opts('100') ],
compile_and_run, [''])
test('T17044', normal, compile_and_run, [''])