Skip to content

Commit

Permalink
Ignore plugin test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Fendor authored and wz1000 committed Dec 20, 2022
1 parent 5be5977 commit ff28990
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ghcide/test/exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1209,9 +1209,32 @@ checkFileCompiles fp diag =
void (openTestDataDoc (dir </> fp))
diag


pluginSimpleTests :: TestTree
pluginSimpleTests =
ignoreInWindowsForGHC810 $
-- Build profile: -w ghc-9.4.2 -O1
-- In order, the following will be built (use -v for more details):
-- - ghc-typelits-natnormalise-0.7.7 (lib) (requires build)
-- - ghc-typelits-knownnat-0.7.7 (lib) (requires build)
-- - plugin-1.0.0 (lib) (first run)
-- Starting ghc-typelits-natnormalise-0.7.7 (lib)
-- Building ghc-typelits-natnormalise-0.7.7 (lib)

-- Failed to build ghc-typelits-natnormalise-0.7.7.
-- Build log (
-- C:\cabal\logs\ghc-9.4.2\ghc-typelits-_-0.7.7-3f036a52a0d9bfc3389d1852a87da2e87c6de2e4.log
-- ):
-- Preprocessing library for ghc-typelits-natnormalise-0.7.7..
-- Building library for ghc-typelits-natnormalise-0.7.7..
-- [1 of 3] Compiling GHC.TypeLits.Normalise.SOP ( src\GHC\TypeLits\Normalise\SOP.hs, dist\build\GHC\TypeLits\Normalise\SOP.o )
-- [2 of 3] Compiling GHC.TypeLits.Normalise.Unify ( src\GHC\TypeLits\Normalise\Unify.hs, dist\build\GHC\TypeLits\Normalise\Unify.o )
-- [3 of 3] Compiling GHC.TypeLits.Normalise ( src-ghc-9.4\GHC\TypeLits\Normalise.hs, dist\build\GHC\TypeLits\Normalise.o )
-- C:\tools\ghc-9.4.2\lib\../mingw/bin/llvm-ar.exe: error: dist\build\objs-5156\libHSghc-typelits-_-0.7.7-3f036a52a0d9bfc3389d1852a87da2e87c6de2e4.a: No such file or directory

-- Error: cabal: Failed to build ghc-typelits-natnormalise-0.7.7 (which is
-- required by plugin-1.0.0). See the build log above for details.
ignoreFor (BrokenSpecific Windows [GHC94]) "ghc-typelist-natnormalise fails to build on GHC 9.4.2 for windows only" $
testSessionWithExtraFiles "plugin-knownnat" "simple plugin" $ \dir -> do
_ <- openDoc (dir </> "KnownNat.hs") "haskell"
liftIO $ writeFile (dir</>"hie.yaml")
Expand Down

0 comments on commit ff28990

Please sign in to comment.