Skip to content

Commit

Permalink
Mark several failing test cases as "expected broken"
Browse files Browse the repository at this point in the history
  • Loading branch information
robx committed Mar 3, 2022
1 parent 7dba4e5 commit 611f8be
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Test.Cabal.Prelude
main = setupAndCabalTest $ do
skipUnlessGhcVersion ">= 8.1"
skipUnlessGhcVersion ">= 8.1"
ghc <- isGhcVersion "== 9.0.2 || == 9.2.1"
expectBrokenIf ghc 7987 $ do
withPackageDb $ do
withDirectory "mylib" $ setup_install_with_docs ["--ipid", "mylib-0.1.0.0"]
withDirectory "mysql" $ setup_install_with_docs ["--ipid", "mysql-0.1.0.0"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import Test.Cabal.Prelude
main = setupTest $ do
-- No cabal test because per-component is broken with it
skipUnlessGhcVersion ">= 8.1"
-- No cabal test because per-component is broken with it
skipUnlessGhcVersion ">= 8.1"
ghc <- isGhcVersion "== 9.0.2 || == 9.2.1"
expectBrokenIf ghc 7987 $
withPackageDb $ do
let setup_install' args = setup_install_with_docs (["--cabal-file", "Includes2.cabal"] ++ args)
setup_install' ["mylib", "--cid", "mylib-0.1.0.0"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import Test.Cabal.Prelude
import Data.List
import qualified Data.Char as Char
main = setupAndCabalTest $ do
skipUnlessGhcVersion ">= 8.1"
skipUnlessGhcVersion ">= 8.1"
ghc <- isGhcVersion "== 9.0.2 || == 9.2.1"
expectBrokenIf ghc 7987 $
withPackageDb $ do
containers_id <- getIPID "containers"
withDirectory "repo/sigs-0.1.0.0" $ setup_install_with_docs ["--ipid", "sigs-0.1.0.0"]
Expand Down
7 changes: 5 additions & 2 deletions cabal-testsuite/PackageTests/ForeignLibs/setup.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ import Test.Cabal.Prelude
-- Recording is turned off because versionedlib will or will not
-- be installed depending on if we're on Linux or not.
main = setupAndCabalTest . recordMode DoNotRecord $ do
-- Foreign libraries don't work with GHC 7.6 and earlier
skipUnlessGhcVersion ">= 7.8"
-- Foreign libraries don't work with GHC 7.6 and earlier
skipUnlessGhcVersion ">= 7.8"
osx <- isOSX
ghc <- isGhcVersion "== 8.0.2"
expectBrokenIf (osx && ghc) 7989 $
withPackageDb $ do
setup_install []
setup "copy" [] -- regression test #4156
Expand Down
3 changes: 3 additions & 0 deletions cabal-testsuite/PackageTests/NewBuild/T3827/cabal.test.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Test.Cabal.Prelude
main = cabalTest $ do
osx <- isOSX
ghc <- isGhcVersion "== 8.10.7"
expectBrokenIf (osx && ghc) 8032 $
cabal "v2-build" ["exe:q"]
5 changes: 4 additions & 1 deletion cabal-testsuite/PackageTests/Regression/T4025/setup.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import Test.Cabal.Prelude
-- an executable RPATH. Don't test on Windows, which doesn't
-- support RPATH.
main = setupAndCabalTest $ do
skipIfWindows
skipIfWindows
osx <- isOSX
ghc <- isGhcVersion ">= 8.10.7"
expectBrokenIf (osx && ghc) 7610 $ do -- see also issue #7988
setup "configure" ["--enable-executable-dynamic"]
setup "build" []
-- This should fail as it we should NOT be able to find the
Expand Down
7 changes: 5 additions & 2 deletions cabal-testsuite/PackageTests/Regression/T4270/setup.test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ main = setupAndCabalTest $ do
skipUnless "no shared libs" =<< hasSharedLibraries
skipUnless "no shared Cabal" =<< hasCabalShared
skipUnless "no Cabal for GHC" =<< hasCabalForGhc
setup_build ["--enable-tests", "--enable-executable-dynamic"]
setup "test" []
ghc <- isGhcVersion "== 8.0.2"
osx <- isOSX
expectBrokenIf (osx && ghc) 8028 $ do
setup_build ["--enable-tests", "--enable-executable-dynamic"]
setup "test" []

0 comments on commit 611f8be

Please sign in to comment.