Cheng Shao pushed to branch wip/fix-ipe-bytecodeIPE-test at Glasgow Haskell Compiler / GHC Commits: cda90980 by Cheng Shao at 2026-07-13T06:46:10+02:00 testsuite: fix bytecodeIPE test under +ipe flavours This patch fixes the bytecodeIPE test under +ipe flavours. It used to fail under +ipe because the RTS is built with IPE info, then stg_AP_info in RTS carries IPE info, so whereFrom wouldn't return Nothing. Now the test checks IPE info of a datacon in the ghci-loaded module which is not affected by whether the RTS is built with IPE info or not. Fixes #27498. Co-authored-by: Codex <codex@openai.com> - - - - - 1 changed file: - testsuite/tests/ghci/scripts/bytecodeIPE.hs Changes: ===================================== testsuite/tests/ghci/scripts/bytecodeIPE.hs ===================================== @@ -3,10 +3,8 @@ module BytecodeIPE where import Data.Maybe (isJust) import GHC.InfoProv (whereFrom) -marker :: String -marker = id "bytecode-stub-init" -{-# NOINLINE marker #-} +data Marker = Marker -- `whereFrom` only succeeds if the module's IPE initializer ran. probe :: IO Bool -probe = isJust <$> whereFrom marker +probe = isJust <$> whereFrom Marker View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cda90980ebc0882fe3e105856630e92b... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/cda90980ebc0882fe3e105856630e92b... 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