-
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
Add test for S_OBJNAME #130155
Add test for S_OBJNAME #130155
Conversation
This PR modifies cc @jieyouxu |
@rustbot label: +O-windows |
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.
Thanks, just one question
let pdbutil_result = | ||
llvm::LlvmPdbutil::new().arg("dump").arg("-symbols").input("my_great_crate_name.pdb").run(); | ||
|
||
llvm::llvm_filecheck().patterns("filecheck.txt").stdin_buf(pdbutil_result.stdout_utf8()).run(); |
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.
Question: does this need to use filecheck? Or can this just use something like assert_stdout_contains_regex
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.
I think in this case assert_stdout_contains_regex should work as it is just one line.
Move the changes into #130156 to make merging easier. |
Add the missing test for #96475
This checks if in the pdb exist an S_OBJNAME entry with the name of the .o file.