-
Notifications
You must be signed in to change notification settings - Fork 711
Add expectBroken test for #7423 #8224
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
Conversation
aed3a9d
to
5f5c040
Compare
Lovely individuals, this does not pass CI and I suspect the problem is related to
↑ I understand little of this. If you point me to a working example I can update the documentation to make it a bit clearer too! |
I have modified the test and now it should pass “expected fail” but I am still a bit confused:
|
I think it means that --accept won't write the expected correct output to the golden file because it can't know what it'll be, so you have to write it yourself (like you did)
Looks correct
why can't we write it like that already? |
If I write it like this ( main = cabalTest . expectBroken 7423 $ cabal "check" [] I get an:
Hence I wonder what I am doing wrong. |
Then I guess that's the meaning of this part:
Looks like the expected output isn't checked at all with expectBroken, but that's the only way to tell if this test is failing since the -O2 warning isn't a fatal warning. |
What about checking that the output does not contain |
@ffaf1: just checking: are you exasperated and you rage-quit this PR :) or have you decided to follow a different design? |
Lol no I have just renamed the branch to a more appropriate name! Maybe renaming locally and deleting the remote was not the proper course of action! I will see if I can fix this or I will just open a new PR as soon as I am finished with the one I am writing (i.e.: writing a testsuite for current |
No worries. :) |
Test (expected fail) for #7423
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!