-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark failing tests as expected failures, or fix them #8022
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b427b00
Remove outdated skip of test CustomPlain on macOS
robx 7cea19a
Note that cabal-with-hpc test skip is not travis-specific
robx 6b36f3f
Replace ghcVersionIs by isGhcVersion, consistent with isWindows, etc.
robx 7dba4e5
Add skipIfGhcVersion
robx fbeb0a1
Mark several failing test cases as "expected broken"
robx 8c09118
Raise heap size of memory tests from 8M to 16M (fixes #8029)
robx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
cabal-testsuite/PackageTests/Backpack/Includes2/setup-external.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
cabal-testsuite/PackageTests/Backpack/Includes2/setup-per-component.test.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = setupTest $ do | ||
skipIf "ghc < 7.8" =<< ghcVersionIs (< mkVersion [7,8]) | ||
skipIf "ghc < 7.8" =<< isGhcVersion "< 7.8" | ||
setup "configure" [] | ||
res <- setup' "build" [] | ||
assertOutputContains "= Post common block elimination =" res |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
import Test.Cabal.Prelude | ||
main = setupTest $ do | ||
skipUnless "no Cabal for GHC" =<< hasCabalForGhc | ||
-- On Travis OSX, Cabal shipped with GHC 7.8 does not work | ||
-- with error "setup: /usr/bin/ar: permission denied"; see | ||
-- also https://github.com/haskell/cabal/issues/3938 | ||
-- This is a hack to make the test not run in this case. | ||
skipIf "osx and ghc < 7.10" =<< liftM2 (&&) isOSX (ghcVersionIs (< mkVersion [7,10])) | ||
setup' "configure" [] >>= assertOutputContains "ThisIsCustomYeah" | ||
setup' "build" [] >>= assertOutputContains "ThisIsCustomYeah" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
import Test.Cabal.Prelude | ||
main = cabalTest $ do | ||
missesProfiling <- isGhcVersion ">= 9.2.1" | ||
osx <- isOSX | ||
missesProfilingOsx <- isGhcVersion ">= 8.10.7" | ||
expectBrokenIf (missesProfiling || osx && missesProfilingOsx) 8032 $ | ||
cabal "v2-build" ["exe:q"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we could move this skipIfWindows to
expectBrokenIf ((osx || win) && ghc)
maybe it should be in other pr, revising all skipIfWindows and transform as much of them as possible in knownBrokenIfWindows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think I'd prefer to leave this out. Skipping might also be more appropriate (in some of those
ifWindows
cases at least), where we test non-Windows functionality, instead of something that we'd usually expect to work but that's broken for some reason.(There's a second difference --
expectBrokenIf
tests will be run, whileskipIf
won't. So e.g. for tests that are too slow, we can't useexpectBrokenIf
.)