[Git][ghc/ghc][wip/romes/async-rpc] fixup! interp: test: no deadlock when handleTHMessage throws.
Andrea Vezzosi pushed to branch wip/romes/async-rpc at Glasgow Haskell Compiler / GHC Commits: 1588c900 by Andrea Vezzosi at 2026-11-03T15:37:30+01:00 fixup! interp: test: no deadlock when handleTHMessage throws. - - - - - 2 changed files: - testsuite/tests/plugins/all.T - testsuite/tests/plugins/static-plugin-interp-panic.stderr Changes: ===================================== testsuite/tests/plugins/all.T ===================================== @@ -374,11 +374,17 @@ test('plugins-external', when(opsys('mingw32') or (opsys('linux') and not ghc_dynamic()), fragile(20706))], makefile_test, []) +# Scrub the GHC version out of the panic header. +def normalise_ghc_version(s): + import re + return re.sub(r'GHC version [^\s:]+', 'GHC version <VERSION>', s) + test('static-plugin-interp-panic', [extra_files(['static-plugin-interp-panic-module.hs']), unless(config.have_RTS_linker, skip), extra_run_opts('"' + config.libdir + '"'), - req_th], + req_th, + normalise_errmsg_fun(normalise_ghc_version)], compile_and_run, ['-package ghc -j1']) ===================================== testsuite/tests/plugins/static-plugin-interp-panic.stderr ===================================== @@ -1,7 +1,7 @@ static-plugin-interp-panic-module.hs:12:5: error: [GHC-87897] • Exception when trying to run compile-time code: panic! (the 'impossible' happened) - GHC version 10.1.20261027: + GHC version <VERSION>: static-plugin-interp-panic: panic loading GHC.Internal.Real Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1588c9001957e342dbcd1169d30c61ae... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1588c9001957e342dbcd1169d30c61ae... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Andrea Vezzosi (@trac-Saizan)