summaryrefslogtreecommitdiff
path: root/testsuite/tests/profiling
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2016-02-22 17:57:43 +0100
committerThomas Miedema <thomasmiedema@gmail.com>2016-02-23 12:28:04 +0100
commit661aa07ed1b133a5ba1ae90525115f8aca0ac92b (patch)
tree75c863a6f676a1becad9b2e31c611ec5a233ea58 /testsuite/tests/profiling
parent176be87cb28f675d87ea8f5c07eaef7ca47ff8de (diff)
downloadhaskell-661aa07ed1b133a5ba1ae90525115f8aca0ac92b.tar.gz
Testsuite: failing profiling tests (#10037)
These tests fail not only for WAY=prof, but also for WAY=profllvm.
Diffstat (limited to 'testsuite/tests/profiling')
-rw-r--r--testsuite/tests/profiling/should_run/all.T13
1 files changed, 8 insertions, 5 deletions
diff --git a/testsuite/tests/profiling/should_run/all.T b/testsuite/tests/profiling/should_run/all.T
index 707ade3731..41597a44cc 100644
--- a/testsuite/tests/profiling/should_run/all.T
+++ b/testsuite/tests/profiling/should_run/all.T
@@ -19,6 +19,10 @@ setTestOpts(keep_prof_callstacks)
extra_prof_ways = ['prof', 'prof_hc_hb', 'prof_hb', 'prof_hd', 'prof_hy', 'prof_hr']
+expect_broken_for_10037 = expect_broken_for(
+ 10037,
+ [w for w in prof_ways if w not in opt_ways]) # e.g. prof and profllvm
+
test('heapprof001',
[when(have_profiling(), extra_ways(extra_prof_ways)), extra_run_opts('7')],
compile_and_run, [''])
@@ -35,7 +39,7 @@ test('T3001-2', [only_ways(['prof_hb']), extra_ways(['prof_hb'])],
# As with ioprof001, the unoptimised profile is different but
# not badly wrong (CAF attribution is different).
-test('scc001', [expect_broken_for(10037, ['prof'])], compile_and_run,
+test('scc001', [expect_broken_for_10037], compile_and_run,
['-fno-state-hack -fno-full-laziness']) # Note [consistent stacks]
test('scc002', [], compile_and_run, [''])
@@ -56,15 +60,14 @@ test('T5314', [extra_ways(extra_prof_ways)], compile_and_run, [''])
test('T680', [], compile_and_run,
['-fno-full-laziness']) # Note [consistent stacks]
-test('T2552', [expect_broken_for(10037, opt_ways)], compile_and_run, [''])
+test('T2552', [expect_broken_for_10037], compile_and_run, [''])
test('T949', [extra_ways(extra_prof_ways)], compile_and_run, [''])
# The results for 'prof' are fine, but the ordering changes.
# We care more about getting the optimised results right, so ignoring
# this for now.
-test('ioprof', [expect_broken_for(10037, ['prof']), exit_code(1)],
- compile_and_run,
+test('ioprof', [expect_broken_for_10037, exit_code(1)], compile_and_run,
['-fno-full-laziness -fno-state-hack']) # Note [consistent stacks]
# These two examples are from the User's Guide:
@@ -84,7 +87,7 @@ test('T5559', [], compile_and_run, [''])
# -fno-state-hack
# -fno-full-laziness
-test('callstack001', [expect_broken_for(10037, ['prof'])],
+test('callstack001', [expect_broken_for_10037],
# unoptimised results are different w.r.t. CAF attribution
compile_and_run, ['-fprof-auto-calls -fno-full-laziness -fno-state-hack'])