Skip to content

Commit

Permalink
Fix ForeignLibs test for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo authored and Mikolaj committed Jul 20, 2024
1 parent 1def827 commit be1ae31
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/ForeignLibs/MyForeignLib.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
EXPORTS
sayHi
myForeignLibExit
myForeignLibInit
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ foreign-library myforeignlib
type: native-shared

if os(windows)
options: standalone
options: standalone
mod-def-file: MyForeignLib.def

other-modules: MyForeignLib.Hello
MyForeignLib.SomeBindings
Expand Down
3 changes: 1 addition & 2 deletions cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ main = setupAndCabalTest . recordMode DoNotRecord $ do
-- Foreign libraries don't work with GHC 7.6 and earlier
skipUnlessGhcVersion ">= 7.8"
ghc94 <- isGhcVersion ">= 9.4.1"
expectBrokenIf (isWindows && ghc94) 8451 $
withPackageDb $ do
withPackageDb $ do
setup_install []
setup "copy" [] -- regression test #4156
dist_dir <- fmap testDistDir getTestEnv
Expand Down

0 comments on commit be1ae31

Please sign in to comment.