-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
WIP: snapshot test for #72550 #72665
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
test this commit by running: (cd src/test/run-make-fulldeps/issue-72550/ && RUSTC=rustc LD_LIB_PATH_ENVVAR=DYLD_LIBRARY_PATH make)
Curiously, this also has no line numbers
8: std::rt::lang_start::{{closure}} | ||
9: std::rt::lang_start_internal | ||
10: std::rt::lang_start | ||
11: main |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
12: test::main | ||
at ./test.rs:2 | ||
13: std::rt::lang_start::{{closure}} | ||
at /Users/alsuren/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/libstd/rt.rs:67 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is clearly not being run in CI.
Marking as S-blocked until such time as you would like review comments here, @alsuren =) |
Ah. I was hoping that marking it as a Draft PR would be enough to sail under your radar. In this PR, I was trying to think of a good integration test to endure that I always have line numbers in backtraces on OSX. On reflection, I don't think that this is the right approach. It doesn't get caught by the PR bulid process, so it will just end up with a bunch of spurious flakes down the line that are a pain to fix. In parallel with this, the original issue has been fixed, and I have started using vscode remote on azure, so all of my compilation and debugging happens on a beefy linux box. Closing now, because it's not the right approach, and doesn't seem worth polishing. Hopefully it wasn't too distracting. |
[Nothing to see here. Just making a PR to kick off the CI]
I was thinking about how to write a regression test for #72550, once it's fixed. Part of me thinks that a snapshot test is the answer. I have a feeling that this will annoy anyone that needs to edit anything in
core::fmt::write
std::io::Write``std::panicking::*
orstd::rt::*
, because they will perturb the snapshot.I'm probably going to sleep on this.
I haven't even looked at how to fix the underlying issue. Just trying to make a regression test, to help out however I can.