diff options
| author | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-06-07 16:39:47 +0200 |
|---|---|---|
| committer | Pietro Albini <pietro.albini@ferrous-systems.com> | 2023-06-12 09:34:14 +0200 |
| commit | a4e8904ce8a3de49cd211123ed24c44b45711705 (patch) | |
| tree | 7099f392c768d8f0e5b022d1094011406a8b1eb6 /src/tools/tidy | |
| parent | 6fd0d1ba149a7049f2acb78ed4a93570ce36e3e4 (diff) | |
| download | rust-a4e8904ce8a3de49cd211123ed24c44b45711705.tar.gz rust-a4e8904ce8a3de49cd211123ed24c44b45711705.zip | |
add way to split mir-opt into panic=abort and panic=unwind
Diffstat (limited to 'src/tools/tidy')
| -rw-r--r-- | src/tools/tidy/src/mir_opt_tests.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tools/tidy/src/mir_opt_tests.rs b/src/tools/tidy/src/mir_opt_tests.rs index 2f6918510e8..c307bcb9390 100644 --- a/src/tools/tidy/src/mir_opt_tests.rs +++ b/src/tools/tidy/src/mir_opt_tests.rs @@ -1,5 +1,6 @@ //! Tidy check to ensure that mir opt directories do not have stale files or dashes in file names +use miropt_test_tools::PanicStrategy; use std::collections::HashSet; use std::path::{Path, PathBuf}; @@ -24,8 +25,10 @@ fn check_unused_files(path: &Path, bless: bool, bad: &mut bool) { for file in rs_files { for bw in [32, 64] { - for output_file in miropt_test_tools::files_for_miropt_test(&file, bw) { - output_files.remove(&output_file.expected_file); + for ps in [PanicStrategy::Unwind, PanicStrategy::Abort] { + for output_file in miropt_test_tools::files_for_miropt_test(&file, bw, ps) { + output_files.remove(&output_file.expected_file); + } } } } |
