summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2020-06-09 18:01:06 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-18 23:04:58 -0400
commit95e18292731cd799e024976f11c18fdf34bcb777 (patch)
tree25509c045db067ae4b756a781a90e92348ea84e1
parent729bcb02716593ae46d7baecce4776b3f353e3f7 (diff)
downloadhaskell-95e18292731cd799e024976f11c18fdf34bcb777.tar.gz
Relax allocation threshold for T12150.
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 ec1f17ad18..658cec6270 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,
[''])