Skip to content
Snippets Groups Projects
Commit 105c370c authored by Zubin's avatar Zubin Committed by Marge Bot
Browse files

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
parent 8e5745a0
No related branches found
No related tags found
No related merge requests found
:set -fforce-recomp
:l MultiLayerModules.hs
:r
:r
......@@ -394,6 +394,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'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment