Skip to content

Commit 7c53c8a

Browse files
committed
Confirm original tests still pass
1 parent 6b983e9 commit 7c53c8a

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,4 +271,4 @@ rm -fr dist*
271271
# cabal configure -fdev --with-compiler=/opt/ghc/9.13.20250316/bin/ghc --allow-newer
272272
# cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.13.20250316/bin/ghc --allow-newer
273273
# cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.13.20250331/bin/ghc --allow-newer
274-
cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.13.20250524/bin/ghc --allow-newer
274+
cabal configure -fdev -froundtrip --enable-tests --with-compiler=/opt/ghc/9.13.20250604/bin/ghc --allow-newer

src/Language/Haskell/GHC/ExactPrint/Parsers.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ runParser parser flags filename str = GHC.unP parser parseState
124124
-- parseState = GHC.initParserState (GHC.initParserOpts flags) buffer location
125125
-- parseState = GHC.initParserStateWithMacros flags Nothing (GHC.initParserOpts flags) buffer location
126126

127-
-- macros = fromMaybe Map.empty macrosFromIORef
128-
macros = fromMaybe (error "macroIORef not set up") macrosFromIORef
127+
macros = fromMaybe Map.empty macrosFromIORef
128+
-- macros = fromMaybe (error "macroIORef not set up") macrosFromIORef
129129

130130
-- opts0 = GHC.initParserOpts flags
131131
-- opts1 = GHC.enableExtBit GHC.UsePosPragsBit opts0
@@ -528,7 +528,8 @@ myGetPragState :: GHC.DynFlags -> GHC.UnitEnv -> GHC.ParserOpts -> FilePath -> H
528528
myGetPragState df unit_env popts filename handle = do
529529
buf <- GHC.hGetStringBufferBlock handle blockSize
530530

531-
let macros = fromMaybe (error "macroIORef not set up") macrosFromIORef
531+
let macros = fromMaybe Map.empty macrosFromIORef
532+
-- let macros = fromMaybe (error "macroIORef not set up") macrosFromIORef
532533

533534
-- opts0 = GHC.initParserOpts flags
534535
-- opts1 = GHC.enableExtBit GHC.UsePosPragsBit opts0

tests/Test.hs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ testDirs :: [FilePath]
4646
testDirs =
4747
case ghcVersion of
4848
GHC910 -> ["pre-ghc910", "ghc910"]
49-
-- GHC912 -> ["pre-ghc910", "ghc910", "ghc912"]
50-
GHC912 -> ["ghc-cpp"]
49+
GHC912 -> ["pre-ghc910", "ghc910", "ghc912"]
50+
-- GHC912 -> ["ghc-cpp"]
5151
-- GHC912 -> ["ghc912"]
5252
-- GHC912 -> ["ghc912-copied"]
5353
-- GHC912 -> ["ghc912", "ghc912-copied"]
@@ -196,7 +196,7 @@ tr = hSilence [stderr] $ do
196196
tt' :: IO (Counts,Int)
197197
tt' = do
198198
let libdir = GHC.Paths.libdir
199-
presetHackageVersionMacros libdir
199+
-- presetHackageVersionMacros libdir
200200
runTestText (putTextToHandle stdout True) $ TestList [
201201

202202
-- mkParserTest libdir "ghc98" "ModuleComments1.hs"
@@ -230,14 +230,15 @@ tt' = do
230230
-- mkParserTest libdir "pre-ghc910" "ExperimIOP.hs"
231231
-- mkParserTest libdir "pre-ghc910" "RandomPGC1.hs"
232232
-- mkParserTest libdir "pre-ghc910" "Utils.hs"
233+
mkParserTest libdir "pre-ghc910" "A.hs"
233234
-- mkParserTest libdir "failing" "CppComment.hs"
234235
-- mkParserTest libdir "ghc-cpp" "Scan.hs"
235236
-- mkParserTest libdir "ghc-cpp" "Test1.hs"
236237
-- mkParserTest libdir "ghc-cpp" "WithoutSomeFixpoints.hs"
237238

238239
-- mkParserTest libdir "ghc-cpp" "Promise.hs"
239240
-- mkParserTest libdir "ghc-cpp" "Set1.hs"
240-
mkParserTest libdir "ghc-cpp" "Compat.hs"
241+
-- mkParserTest libdir "ghc-cpp" "Compat.hs"
241242

242243
]
243244

tests/Test/Common.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ import System.FilePath
7070
import qualified GHC.Paths
7171

7272
useGhcCpp :: Bool
73-
useGhcCpp = True
74-
-- useGhcCpp = False
73+
-- useGhcCpp = True
74+
useGhcCpp = False
7575

7676
testPrefix :: FilePath
7777
testPrefix = "." </> "tests" </> "examples"

0 commit comments

Comments
 (0)