-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Description
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
fn up_to_date(config: &Config, testpaths: &TestPaths, props: &EarlyProps) -> bool { | |
let stamp = mtime(&stamp(config, testpaths)); | |
let mut inputs = vec![ | |
mtime(&testpaths.file), | |
mtime(&config.rustc_path), | |
]; | |
for aux in props.aux.iter() { | |
inputs.push(mtime(&testpaths.file.parent().unwrap() | |
.join("auxiliary") | |
.join(aux))); | |
} | |
for lib in config.run_lib_path.read_dir().unwrap() { | |
let lib = lib.unwrap(); | |
inputs.push(mtime(&lib.path())); | |
} | |
inputs.iter().any(|input| *input > stamp) | |
} |
Bonus points for exiting from that function immediately when finding something out-of-date.
Metadata
Metadata
Assignees
Labels
A-testsuiteArea: The testsuite used to check the correctness of rustcArea: The testsuite used to check the correctness of rustcC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.