Skip to content

Commit

Permalink
Fix ForeignLibs test for Windows
Browse files Browse the repository at this point in the history
(cherry picked from commit be1ae31)

# Conflicts:
#	cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs
  • Loading branch information
jasagredo authored and mergify[bot] committed Jul 21, 2024
1 parent 57e49de commit 617faf4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
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
4 changes: 4 additions & 0 deletions cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ main = setupAndCabalTest . recordMode DoNotRecord $ do
skipUnlessGhcVersion ">= 7.8"
win <- isWindows
ghc94 <- isGhcVersion ">= 9.4.1"
<<<<<<< HEAD

Check failure on line 32 in cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs

View workflow job for this annotation

GitHub Actions / hlint

Error: Parse error: on input `<<<<<<<' ▫︎ Found: " win <- isWindows\n ghc94 <- isGhcVersion \">= 9.4.1\"\n> <<<<<<< HEAD\n expectBrokenIf (win && ghc94) 8451 $\n withPackageDb $ do\n"

Check failure on line 32 in cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs

View workflow job for this annotation

GitHub Actions / hlint

Error: Parse error: on input `<<<<<<<' ▫︎ Found: " win <- isWindows\n ghc94 <- isGhcVersion \">= 9.4.1\"\n> <<<<<<< HEAD\n expectBrokenIf (win && ghc94) 8451 $\n withPackageDb $ do\n"
expectBrokenIf (win && ghc94) 8451 $
withPackageDb $ do
=======
withPackageDb $ do
>>>>>>> be1ae3183 (Fix ForeignLibs test for Windows)
setup_install []
setup "copy" [] -- regression test #4156
dist_dir <- fmap testDistDir getTestEnv
Expand Down

0 comments on commit 617faf4

Please sign in to comment.