-
Notifications
You must be signed in to change notification settings - Fork 13k
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
compiletest: Test execution time-stamping should take into account debugger pretty printers. #45022
Comments
Maybe I can help here as a first contribution to the programming language. |
So, I have read the code and I tried to understand where is the problem, and what kind of solution I can propose. This is my thought:
Thanks for those responses. |
@k0pernicus You're on the right track:
let rust_src_dir = ...;
inputs.push(rust_src_dir.join("src/etc/debugger_pretty_printers_common.py"));
inputs.push(rust_src_dir.join("src/etc/gdb_load_rust_pretty_printers.py"));
... Unfortunately the |
Ok, I understand. I will work on that issue after work, in order to submit a PR + code review for tomorrow morning. |
@michaelwoerister I just created the PR to share the code. Is it possible to obtain a simple example of "procedure", in order to test my changes please? |
Add pretty printer files into test execution time-stamping Move find_rust_src_path() as a method for Config Move find_rust_src_path() as a method for Config Call find_rust_src_path() from Config Move find_rust_src_path() from common.rs to header.rs Add pretty printer files as relevant files to get up_to_date information Remove dead code Add two pretty printer files to keep a close watch on Move find_rust_src_path() as a method for Config Move find_rust_src_path() as a method for Config Call find_rust_src_path() from Config Move find_rust_src_path() from common.rs to header.rs Remove dead code Add two pretty printer files to keep a close watch on
Debugger pretty printer files are take into account in test execution time-stamping This PR is proposed to solve the issue rust-lang#45022.
Implemented in #45051. |
Modifying one of the pretty-printer python files in src/etc does "un-ignore" debuginfo tests. The relevant files should be added to the list of inputs in
compiletest::up_to_date()
:rust/src/tools/compiletest/src/main.rs
Lines 491 to 507 in fd8099f
Bonus points for exiting from that function immediately when finding something out-of-date.
The text was updated successfully, but these errors were encountered: