Skip to content

Fix test suite wobbliness on GHC 8.2. #4554

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

Merged
merged 2 commits into from
Jun 9, 2017

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Jun 6, 2017

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 ezyang@cs.stanford.edu

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 <ezyang@cs.stanford.edu>
@mention-bot
Copy link

@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
Copy link
Member

23Skidoo commented Jun 7, 2017

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

@23Skidoo
Copy link
Member

23Skidoo commented Jun 9, 2017

#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