Skip to content

Commit b80faa6

Browse files
committed
Disable relocatable tests on FreeBSD
1 parent e00ceaf commit b80faa6

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

cabal-testsuite/PackageTests/PathsModule/Executable-Relocatable/setup.test.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Test.Cabal.Prelude
33

44
main = do
55
skipIfWindows "no relocatable builds"
6+
skipIfFreeBSD "no relocatable builds"
67
setupAndCabalTest $ do
78
skipUnlessGhcVersion ">= 8.0"
89
withPackageDb $ setup_build ["--enable-relocatable"]

cabal-testsuite/PackageTests/Regression/T4291/setup.test.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Test.Cabal.Prelude
55
-- contains '..'
66
main = do
77
skipIfWindows "no relocatable builds"
8+
skipIfFreeBSD "no relocatable builds"
89
setupAndCabalTest $ withPackageDb $ do
910
skipUnlessGhcVersion ">= 7.6"
1011
env <- getTestEnv

cabal-testsuite/src/Test/Cabal/Prelude.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,9 @@ skipIfJavaScript = skipIfIO "incompatible with the JavaScript backend" isJavaScr
10581058
isWindows :: Bool
10591059
isWindows = buildOS == Windows
10601060

1061+
isFreeBSD :: Bool
1062+
isFreeBSD = buildOS == FreeBSD
1063+
10611064
isCI :: IO Bool
10621065
isCI = isJust <$> lookupEnv "CI"
10631066

@@ -1075,6 +1078,9 @@ isJavaScript = buildArch == JavaScript
10751078
skipIfWindows :: String -> IO ()
10761079
skipIfWindows why = skipIfIO ("Windows " <> why) isWindows
10771080

1081+
skipIfFreeBSD :: String -> IO ()
1082+
skipIfFreeBSD why = skipIfIO ("FreeBSD " <> why) isFreeBSD
1083+
10781084
skipUnlessWindows :: IO ()
10791085
skipUnlessWindows = skipIfIO "Only interesting in Windows" (not isWindows)
10801086

0 commit comments

Comments
 (0)