summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-12-16 17:25:38 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-12-17 21:26:59 -0500
commit887d8b4c409c06257a63751e4e84c86ddf5cc874 (patch)
treea69d8debafac0e63ddce0d7a8d5952ee2ac74e28
parent9529d859fef6fe353081588ba96257519a20728a (diff)
downloadhaskell-887d8b4c409c06257a63751e4e84c86ddf5cc874.tar.gz
testsuite: Ensure that -dcore-lint is not set for compiler performance tests
This place ensures that the default -dcore-lint option is disabled by default when collect_compiler_stats is used but you can still pass -dcore-lint as an additional option (see T1969 which tests core lint performance). Fixes #20830 ------------------------- Metric Decrease: PmSeriesS PmSeriesT PmSeriesV T10858 T11195 T11276 T11374 T11822 T14052 T14052Type T17096 T17836 T17836b T18478 T18698a T18698b -------------------------
-rw-r--r--testsuite/driver/testlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 1f525234e4..42b979f1f0 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -495,6 +495,7 @@ def _extra_files(name, opts, files):
# collect_stats is used in the majority case when the metrics to be collected
# are about the performance of the runtime code generated by the compiler.
def collect_compiler_stats(metric='all',deviation=20):
+ setTestOpts(no_lint)
return lambda name, opts, m=metric, d=deviation: _collect_stats(name, opts, m,d, True)
def collect_stats(metric='all', deviation=20):