summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-12-16 17:25:38 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2021-12-16 21:43:11 +0000
commit37661f715b466fe924bc08ab5002f62c48ee1b3e (patch)
tree7bf47ec832f1a67612313309c268d823ca45da49
parent6cea73113e63650e3eeee9c187ae3de7ffc19af6 (diff)
downloadhaskell-wip/no-core-lint-perf-tests.tar.gz
testsuite: Ensure that -dcore-lint is not set for compiler performance testswip/no-core-lint-perf-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):