Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/tools/compiletest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,11 @@ pub fn run_tests(config: Arc<Config>) {
}
}
}
// FIXME: not really true, few tests in tests/debuginfo do not require any debugger
assert!(
!configs.is_empty(),
"no debuggers found, debuginfo tests can't run without debugger"
);
} else {
configs.push(config.clone());
};
Expand All @@ -597,7 +602,7 @@ pub fn run_tests(config: Arc<Config>) {
for c in configs {
tests.extend(collect_and_make_tests(c));
}

assert!(!tests.is_empty(), "no test found for run, verify configuration");
tests.sort_by(|a, b| Ord::cmp(&a.desc.name, &b.desc.name));

// Delegate to the executor to filter and run the big list of test structures
Expand Down
Loading