File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed
PathsModule/Executable-Relocatable Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Test.Cabal.Prelude
33
44main = do
55 skipIfWindows " no relocatable builds"
6+ skipIfFreeBSD " no relocatable builds"
67 setupAndCabalTest $ do
78 skipUnlessGhcVersion " >= 8.0"
89 withPackageDb $ setup_build [" --enable-relocatable" ]
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import Test.Cabal.Prelude
55-- contains '..'
66main = do
77 skipIfWindows " no relocatable builds"
8+ skipIfFreeBSD " no relocatable builds"
89 setupAndCabalTest $ withPackageDb $ do
910 skipUnlessGhcVersion " >= 7.6"
1011 env <- getTestEnv
Original file line number Diff line number Diff line change @@ -1058,6 +1058,9 @@ skipIfJavaScript = skipIfIO "incompatible with the JavaScript backend" isJavaScr
10581058isWindows :: Bool
10591059isWindows = buildOS == Windows
10601060
1061+ isFreeBSD :: Bool
1062+ isFreeBSD = buildOS == FreeBSD
1063+
10611064isCI :: IO Bool
10621065isCI = isJust <$> lookupEnv " CI"
10631066
@@ -1075,6 +1078,9 @@ isJavaScript = buildArch == JavaScript
10751078skipIfWindows :: String -> IO ()
10761079skipIfWindows why = skipIfIO (" Windows " <> why) isWindows
10771080
1081+ skipIfFreeBSD :: String -> IO ()
1082+ skipIfFreeBSD why = skipIfIO (" FreeBSD " <> why) isFreeBSD
1083+
10781084skipUnlessWindows :: IO ()
10791085skipUnlessWindows = skipIfIO " Only interesting in Windows" (not isWindows)
10801086
You can’t perform that action at this time.
0 commit comments