[Git][ghc/ghc][master] testsuite: fix bytecodeIPE test under +ipe flavours
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: 7eb0f1c9 by Cheng Shao at 2026-07-14T18:02:31-04: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/7eb0f1c993ae12a7e0acd8e73ec19d04... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7eb0f1c993ae12a7e0acd8e73ec19d04... 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)
-
Marge Bot (@marge-bot)