Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 8eb3def

Browse files
committed
handle "ignore-" and "only-"
1 parent 55121a9 commit 8eb3def

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/compiletest/src/header.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,12 @@ impl Config {
697697
let (name, comment) =
698698
line.split_once(&[':', ' ']).map(|(l, c)| (l, Some(c))).unwrap_or((line, None));
699699

700+
// Some of the matchers might be "" depending on what the target information is. To avoid
701+
// problems we outright reject empty directives.
702+
if name == "" {
703+
return ParsedNameDirective::invalid();
704+
}
705+
700706
let mut outcome = MatchOutcome::Invalid;
701707
let mut message = None;
702708

0 commit comments

Comments
 (0)