Skip to content

Commit

Permalink
Add expectBroken test for haskell#7423
Browse files Browse the repository at this point in the history
  • Loading branch information
ffaf1 committed Jun 17, 2022
1 parent 42da820 commit 5f5c040
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cabal-testsuite/PackageTests/Check/NoWarnFlag/cabal.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# cabal check
No errors or warnings could be found in the package.
3 changes: 3 additions & 0 deletions cabal-testsuite/PackageTests/Check/NoWarnFlag/cabal.test.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Test.Cabal.Prelude

main = cabalTest . expectBroken 7423 $ cabal "check" []
18 changes: 18 additions & 0 deletions cabal-testsuite/PackageTests/Check/NoWarnFlag/pkg.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
cabal-version: 2.2
name: pkg
version: 0
category: example
maintainer: none@example.com
synopsis: synopsys
description: description
license: GPL-3.0-or-later

flag force-O2
default: False
manual: True

library
exposed-modules: Foo
default-language: Haskell2010
if flag(force-O2)
ghc-options: -O2

0 comments on commit 5f5c040

Please sign in to comment.