[Git][ghc/ghc][master] testsuite: inline elemCoreTest
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: 86ca6c2c by mangoiv at 2026-04-17T22:31:22-04:00 testsuite: inline elemCoreTest Some weird (probably python scoping) rule caused elemCoreTest, a regex being out of scope on ubuntu, presumably because of a newer python version. This patch just inlines the regex, which fixes the issue. Fixes #27193 - - - - - 1 changed file: - libraries/base/tests/perf/all.T Changes: ===================================== libraries/base/tests/perf/all.T ===================================== @@ -5,15 +5,13 @@ setTestOpts(js_skip) # Check optimization of `elem` #-------------------------------------- -elemCoreFilter = "sed -En '/^(is|fusion|noFusion)[A-Za-z]*($| )/,/^$/p'" - def elemCoreTest(test_name, module_name, opt): test(test_name, [only_ways(['normal']), extra_files([module_name + '.hs'])], multimod_compile_filter, [module_name, f'{opt} -ddump-simpl -dsuppress-all -dsuppress-uniques -dno-typeable-binds', - elemCoreFilter]) + "sed -En '/^(is|fusion|noFusion)[A-Za-z]*($| )/,/^$/p'"]) elemCoreTest('T17752_O1', 'T17752', '-O1') elemCoreTest('T17752_O2', 'T17752', '-O2') View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/86ca6c2cf93147ed67a39be1112911d8... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/86ca6c2cf93147ed67a39be1112911d8... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)