diff options
author | Ben Gamari <ben@well-typed.com> | 2022-01-28 23:56:41 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-01-30 06:27:19 -0500 |
commit | d07799ab22c156df53919737e3b11ab4ccb2b0d4 (patch) | |
tree | ca0fa258c96ce70afff2e1ff704b4a0e49b05ac1 | |
parent | eb956cf14bb7e2336d84ea1f17ac57f04adc2436 (diff) | |
download | haskell-d07799ab22c156df53919737e3b11ab4ccb2b0d4.tar.gz |
testsuite: Make T7275 more robust against CCid changes
The cost-center numbers are somewhat unstable; normalise them out.
-rw-r--r-- | testsuite/tests/profiling/should_run/Makefile | 6 | ||||
-rw-r--r-- | testsuite/tests/profiling/should_run/T7275.stdout | 32 |
2 files changed, 19 insertions, 19 deletions
diff --git a/testsuite/tests/profiling/should_run/Makefile b/testsuite/tests/profiling/should_run/Makefile index 0f3c155d67..4db4e193a5 100644 --- a/testsuite/tests/profiling/should_run/Makefile +++ b/testsuite/tests/profiling/should_run/Makefile @@ -9,9 +9,9 @@ T7275: "$(TEST_HC)" -prof -v0 -rtsopts T7275.hs ./T7275 +RTS -hc -i0 # Suzanne should appear here, despite having produced only pinned - # allocations. Strip off the actual amounts since they will be - # non-determinstic. - grep suzanne T7275.hp | cut -f1 -d' ' + # allocations. Strip off the actual amounts and cost-center numbers since + # they will be non-determinstic. + grep suzanne T7275.hp | cut -f1 -d' ' | sed -e 's/([0-9]\+)//' .PHONY: T11489 T11489: diff --git a/testsuite/tests/profiling/should_run/T7275.stdout b/testsuite/tests/profiling/should_run/T7275.stdout index 4dbeabc5c6..eaaa71bc27 100644 --- a/testsuite/tests/profiling/should_run/T7275.stdout +++ b/testsuite/tests/profiling/should_run/T7275.stdout @@ -3,19 +3,19 @@ 2 3 4 -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert -(286)suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert +suzanne/robert |