summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-06-09 18:01:06 +0200
committerAndreas Klebinger <klebinger.andreas@gmx.at>2020-06-09 18:01:06 +0200
commit57d6a78e728696f531ad5c6e71ce85293c4bf58c (patch)
treea25086a25e2251368f58f912bfefbaa13af9174f
parent72c7fe9a1e147dfeaf043f6d591d724a126cce45 (diff)
downloadhaskell-wip/andreask/T12150_threshold.tar.gz
Relax allocation threshold for T12150.wip/andreask/T12150_threshold
This test performs little work, so the most minor allocation changes often cause the test to fail. Increasing the threshold to 2% should help with this.
-rw-r--r--testsuite/tests/perf/compiler/all.T7
1 files changed, 6 insertions, 1 deletions
diff --git a/testsuite/tests/perf/compiler/all.T b/testsuite/tests/perf/compiler/all.T
index 5a865fdd14..b50f6dbcc8 100644
--- a/testsuite/tests/perf/compiler/all.T
+++ b/testsuite/tests/perf/compiler/all.T
@@ -234,9 +234,14 @@ test('T12707',
compile,
[''])
+# This test is meant to test regressions involving the
+# pattern match checker. Any regression there will show
+# up massively, but otherwise it hardly allocates. So we
+# are slightly more generous with the allocation threshold
+# to avoid spurious errors.
test('T12150',
[ only_ways(['optasm']),
- collect_compiler_stats('bytes allocated', 1)
+ collect_compiler_stats('bytes allocated', 2)
],
compile,
[''])