Skip to content
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

crux-mir tests throw away information #1229

Open
sauclovian-g opened this issue Jul 31, 2024 · 0 comments
Open

crux-mir tests throw away information #1229

sauclovian-g opened this issue Jul 31, 2024 · 0 comments
Labels
MIR Issues relating to Rust/MIR support testing

Comments

@sauclovian-g
Copy link
Contributor

I had some problems running the crux-mir tests (now solved) that revealed the following points:

  1. Even once you persuade cabal to let you run the test harness by hand, there's no way to get that program to print the subprogram invocations (of mir-json) that it attempts. A -v option would be appropriate, probably.
  2. The test program throws away stderr when it runs mir-json, so if mir-json fails it's impossible to tell why. The actual problem I was having was that the rust invocations inside mir-json were failing, but the errors they printed were being lost. Test infrastructure should not under any circumstances throw away output of things that fail -- otherwise you have no hope of being able to diagnose the failure.
@sauclovian-g sauclovian-g added testing MIR Issues relating to Rust/MIR support labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MIR Issues relating to Rust/MIR support testing
Projects
None yet
Development

No branches or pull requests

1 participant