summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-07-22 21:13:04 +0000
committerDouglas Wilson <douglas.wilson@gmail.com>2022-07-26 08:30:48 +0100
commite829a92105678f65d2ec8a012692d223d09e3faf (patch)
tree3eb08582e5ac3b70570236526e7e679ccc8bdc7e
parentc2c9f357f859271fa662ccb750fdcd9541fd9d4a (diff)
downloadhaskell-wip/dougwilson/9-4-backport-8694.tar.gz
testsuite: Skip a few tests as in the nonmoving collectorwip/dougwilson/9-4-backport-8694
Residency monitoring under the non-moving collector is quite conservative (e.g. the reported value is larger than reality) since otherwise we would need to block on concurrent collection. Skip a few tests that are sensitive to residency. (cherry picked from commit 6880e4fbf728c04e8ce83e725bfc028fcb18cd70)
-rw-r--r--libraries/base/tests/all.T6
-rw-r--r--testsuite/tests/profiling/should_run/all.T4
-rw-r--r--testsuite/tests/rts/all.T12
3 files changed, 18 insertions, 4 deletions
diff --git a/libraries/base/tests/all.T b/libraries/base/tests/all.T
index d39b41b92a..c04a914146 100644
--- a/libraries/base/tests/all.T
+++ b/libraries/base/tests/all.T
@@ -258,7 +258,11 @@ test('T16943b', normal, compile_and_run, [''])
test('T17499', [collect_stats('bytes allocated',5)], compile_and_run, ['-O -w'])
test('T16643', normal, compile_and_run, [''])
test('clamp', normal, compile_and_run, [''])
-test('T18642', extra_run_opts('+RTS -T -RTS'), compile_and_run, ['-O2'])
+test('T18642',
+ [extra_run_opts('+RTS -T -RTS'),
+ # The nonmoving GC's residency behavior is very conservative
+ omit_ways(['nonmoving', 'nonmoving_thr', 'nonmoving_thr_sanity'])],
+ compile_and_run, ['-O2'])
test('T19288', exit_code(1), compile_and_run, [''])
test('T19719', normal, compile_and_run, [''])
test('T20107', extra_run_opts('+RTS -M50M'), compile_and_run, ['-package bytestring'])
diff --git a/testsuite/tests/profiling/should_run/all.T b/testsuite/tests/profiling/should_run/all.T
index 0455d06f17..bebcc333ea 100644
--- a/testsuite/tests/profiling/should_run/all.T
+++ b/testsuite/tests/profiling/should_run/all.T
@@ -31,7 +31,9 @@ test('staticcallstack002',
['-O0 -g3 -fdistinct-constructor-tables -finfo-table-map'])
test('T21455',
- [extra_run_opts('+RTS -hT -postem')],
+ [extra_run_opts('+RTS -hT -postem'),
+ # Nonmoving collector doesn't support -hT
+ omit_ways(['nonmoving', 'nonmoving_thr', 'nonmoving_thr_sanity'])],
compile_and_run,
[''])
diff --git a/testsuite/tests/rts/all.T b/testsuite/tests/rts/all.T
index 23a9a2f126..6d355868da 100644
--- a/testsuite/tests/rts/all.T
+++ b/testsuite/tests/rts/all.T
@@ -497,8 +497,16 @@ test('T17088',
test('T15427', normal, compile_and_run, [''])
-test('T19481', extra_run_opts('+RTS -T -RTS'), compile_and_run, [''])
-test('T19381', extra_run_opts('+RTS -T -RTS'), compile_and_run, [''])
+test('T19481',
+ [extra_run_opts('+RTS -T -RTS'),
+ # memory behavior changes appreciably with the nonmoving collector
+ omit_ways(['nonmoving', 'nonmoving_thr', 'nonmoving_thr_sanity'])],
+ compile_and_run, [''])
+test('T19381',
+ [extra_run_opts('+RTS -T -RTS'),
+ # memory behavior changes appreciably with the nonmoving collector
+ omit_ways(['nonmoving', 'nonmoving_thr', 'nonmoving_thr_sanity'])],
+ compile_and_run, [''])
test('T20199', [ grep_errmsg('Hello') ]
, makefile_test, [])