File tree Expand file tree Collapse file tree 10 files changed +60
-0
lines changed Expand file tree Collapse file tree 10 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ register.sh
6969# listed explicitly to show which files are generated but ignored
7070testdb /intree /cabal.project-test
7171testdb /intree /store /** /bin /alex
72+ testdb /intree /store /** /bin /alex.exe
7273testdb /intree /store /** /cabal-hash.txt
7374testdb /intree /store /** /share /AlexTemplate.hs
7475testdb /intree /store /** /share /AlexWrappers.hs
Original file line number Diff line number Diff line change 1+ module Main where
2+
3+ main :: IO ()
4+ main = pure ()
Original file line number Diff line number Diff line change 1+ cabal-version : 3.0
2+ name : aa
3+ version : 0.1.0.0
4+ build-type : Simple
5+
6+ executable a
7+ default-language : Haskell2010
8+ main-is : Main.hs
Original file line number Diff line number Diff line change 1+ # cabal build
2+ Resolving dependencies...
3+ Build profile: -w ghc-<GHCVER> -O1
4+ In order, the following will be built:
5+ - aa-0.1.0.0 (exe:a) (first run)
6+ Configuring executable 'a' for aa-0.1.0.0...
7+ Warning: Executables will use dynamic linking, but a shared library is not
8+ being built. Linking will fail if any executables depend on the library.
9+ Error: [Cabal-3339]
10+ Operating system: windows, does not support shared executables
11+ Error: [Cabal-7125]
12+ Failed to build aa-0.1.0.0-inplace-a. The failure occurred during the configure step.
Original file line number Diff line number Diff line change 1+ import Test.Cabal.Prelude
2+
3+ main = do
4+ skipUnlessWindows
5+ cabalTest $ fails $ cabal " build" [" --enable-executable-dynamic" , " --disable-shared" ]
Original file line number Diff line number Diff line change 1+ module Main where
2+
3+ main :: IO ()
4+ main = pure ()
Original file line number Diff line number Diff line change 1+ cabal-version : 3.0
2+ name : aa
3+ version : 0.1.0.0
4+ build-type : Simple
5+
6+ executable a
7+ default-language : Haskell2010
8+ main-is : Main.hs
Original file line number Diff line number Diff line change 1+ # cabal build
2+ Resolving dependencies...
3+ Build profile: -w ghc-<GHCVER> -O1
4+ In order, the following will be built:
5+ - aa-0.1.0.0 (exe:a) (first run)
6+ Configuring executable 'a' for aa-0.1.0.0...
7+ Error: [Cabal-3339]
8+ Operating system: windows, does not support relocatable builds
9+ Error: [Cabal-7125]
10+ Failed to build aa-0.1.0.0-inplace-a. The failure occurred during the configure step.
Original file line number Diff line number Diff line change 1+ import Test.Cabal.Prelude
2+
3+ main = do
4+ skipUnlessWindows
5+ cabalTest $ fails $ cabal " build" [" --enable-relocatable" ]
Original file line number Diff line number Diff line change @@ -937,6 +937,9 @@ isJavaScript = buildArch == JavaScript
937937skipIfWindows :: String -> IO ()
938938skipIfWindows why = skipIfIO (" Windows " <> why) isWindows
939939
940+ skipUnlessWindows :: IO ()
941+ skipUnlessWindows = skipIfIO " Only interesting in Windows" (not isWindows)
942+
940943getOpenFilesLimit :: TestM (Maybe Integer )
941944#ifdef mingw32_HOST_OS
942945-- No MS-specified limit, was determined experimentally on Windows 10 Pro x64,
You can’t perform that action at this time.
0 commit comments