Skip to content

Commit c57e404

Browse files
committed
Add a stanza constraint too
1 parent 57fe800 commit c57e404

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • cabal-install/tests/UnitTests/Distribution/Solver/Modular

cabal-install/tests/UnitTests/Distribution/Solver/Modular/Solver.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ tests =
264264
onlyConstrained $
265265
mkTest db12 "non-goal dependencies are only flag-constrained" ["E", "syb"] $
266266
solverFailure (isInfixOf "not a user-provided goal")
267+
, runTest $
268+
constraints [ExStanzaConstraint (ScopeAnyQualifier "base") [TestStanzas]] $
269+
onlyConstrained $
270+
mkTest db12 "non-goal dependencies are only stanza-constrained" ["E", "syb"] $
271+
solverFailure (isInfixOf "not a user-provided goal")
267272
, runTest $
268273
constraints [ExVersionConstraint (ScopeAnyQualifier "base") (V.thisVersion (V.mkVersion [4]))] $
269274
onlyConstrained $

0 commit comments

Comments
 (0)