Skip to content

Fix test suite wobbliness on GHC 8.2. - #4554

Merged
23Skidoo merged 2 commits into
haskell:masterfrom
ezyang:pr/8.2-wobbliness
Jun 9, 2017
Merged

23Skidoo merged 2 commits into
haskell:masterfrom
ezyang:pr/8.2-wobbliness

Conversation

@ezyang

@ezyang ezyang commented Jun 6, 2017 •

Copy link
Copy Markdown
Contributor

Here were the root causes:

  • Some tests involving Custom setpu showed MORE output
    (UseLocalPackageForSetup) when run on GHC 8.2. This is because GHC
    8.2 ships a recent enough version of Cabal to know how to emit
    markers, which means we have started picking up the output. I hacked
    up these tests to not accept this output, but a more correct thing to
    do is figure out how to NOT request marking of a Setup script which is
    not the inplace install. This was a little tricky so I bailed.

  • GHC 8.2 no longer emits "It is a member of the hidden package".
    This broke CustomWithoutCabalDefaultMain. Not sure if this
    is a GHC regression but it's pretty harmless.

  • While I was at it, I fixed an inexhaustive pattern match in
    cabal-testsuite (though perhaps poorly; I couldn't figure out
    what the new constructor does.)

Signed-off-by: Edward Z. Yang [email protected]

Please include the following checklist in your PR:

  • Any changes that could be relevant to users have been recorded in the changelog.
  • The documentation has been updated, if necessary.

Please also shortly describe how you tested your change. Bonus points for added tests!

Here were the root causes:

- Some tests involving Custom setpu showed MORE output
  (UseLocalPackageForSetup) when run on GHC 8.2.  This is because GHC
  8.2 ships a recent enough version of Cabal to know how to emit
  markers, which means we have started picking up the output.  I hacked
  up these tests to not accept this output, but a more correct thing to
  do is figure out how to NOT request marking of a Setup script which is
  not the inplace install.  This was a little tricky so I bailed.

- GHC 8.2 no longer emits "It is a member of the hidden package".
  This broke CustomWithoutCabalDefaultMain.  Not sure if this
  is a GHC regression but it's pretty harmless.

- While I was at it, I fixed an inexhaustive pattern match in
  cabal-testsuite (though perhaps poorly; I couldn't figure out
  what the new constructor does.)

Signed-off-by: Edward Z. Yang <[email protected]>
@mention-bot

Copy link
Copy Markdown

@ezyang, thanks for your PR! By analyzing the history of the files in this pull request, we identified @GrayJay to be a potential reviewer.

@ezyang ezyang mentioned this pull request Jun 6, 2017
@23Skidoo

23Skidoo commented Jun 7, 2017

Copy link
Copy Markdown
Member

It looks like there is still one remaining failure, see #4529 (comment).

@23Skidoo

23Skidoo commented Jun 9, 2017

Copy link
Copy Markdown
Member

#4529 has passed, merging!

@23Skidoo
23Skidoo merged commit d408b5e into haskell:master Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants