diff --git a/tests/compiletest.rs b/tests/compiletest.rs index 025ec660d2e8..181f06ba1ebd 100644 --- a/tests/compiletest.rs +++ b/tests/compiletest.rs @@ -34,8 +34,9 @@ fn for_all_targets(sysroot: &str, mut f: F) { continue; } let target = target.file_name().into_string().unwrap(); - if target == "etc" { - continue; + match &*target { + "etc" | "src" => continue, + _ => {}, } let stderr = std::io::stderr(); writeln!(stderr.lock(), "running tests for target {}", target).unwrap();