Testsuite: failing profiling tests (#10037)
authorThomas Miedema <thomasmiedema@gmail.com>
Mon, 22 Feb 2016 16:57:43 +0000 (17:57 +0100)
committerThomas Miedema <thomasmiedema@gmail.com>
Tue, 23 Feb 2016 11:28:04 +0000 (12:28 +0100)
These tests fail not only for WAY=prof, but also for WAY=profllvm.

testsuite/tests/profiling/should_run/all.T

index 707ade3..41597a4 100644 (file)
@@ -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'])