[Git][ghc/ghc][wip/24107] testsuite: add test for #24118 and #24107
Zubin (@wz1000)
gitlab at gitlab.haskell.org
Fri Dec 1 11:23:17 UTC 2023
Zubin pushed to branch wip/24107 at Glasgow Haskell Compiler / GHC
Commits:
84458053 by Zubin Duggal at 2023-12-01T16:53:10+05:30
testsuite: add test for #24118 and #24107
MultiLayerModulesDefsGhci was not able to catch the leak because it uses
:l which discards the previous environment.
Using :r catches both of these leaks
- - - - -
2 changed files:
- + testsuite/tests/perf/compiler/MultiLayerModulesDefsGhciReload.script
- testsuite/tests/perf/compiler/all.T
Changes:
=====================================
testsuite/tests/perf/compiler/MultiLayerModulesDefsGhciReload.script
=====================================
@@ -0,0 +1,4 @@
+:set -fforce-recomp
+:l MultiLayerModules.hs
+:r
+:r
=====================================
testsuite/tests/perf/compiler/all.T
=====================================
@@ -392,6 +392,19 @@ test('MultiLayerModulesDefsGhci',
ghci_script,
['MultiLayerModulesDefsGhci.script'])
+test('MultiLayerModulesDefsGhciReload',
+ [ collect_compiler_residency(15),
+ pre_cmd('./genMultiLayerModulesDefs'),
+ extra_files(['genMultiLayerModulesDefs']),
+ compile_timeout_multiplier(5)
+ # this is _a lot_
+ # but this test has been failing every now and then,
+ # especially on i386. Let's just give it some room
+ # to complete successfully reliably everywhere.
+ ],
+ ghci_script,
+ ['MultiLayerModulesDefsGhciReload.script'])
+
test('InstanceMatching',
[ collect_compiler_stats('bytes allocated',3),
pre_cmd('$MAKE -s --no-print-directory InstanceMatching'),
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/84458053eb48f5e74c2c170b16f570f171030784
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/84458053eb48f5e74c2c170b16f570f171030784
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20231201/517d37ac/attachment-0001.html>
More information about the ghc-commits
mailing list