We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42e57f6 commit 758c11bCopy full SHA for 758c11b
src/test/compiletest/compiletest.rs
@@ -162,7 +162,11 @@ fn make_tests(&config config) -> test::test_desc[] {
162
}
163
164
fn is_test(&str testfile) -> bool {
165
- str::ends_with(testfile, ".rs") || str::ends_with(testfile, ".rc")
+ auto name = fs::basename(testfile);
166
+ (str::ends_with(name, ".rs") || str::ends_with(name, ".rc"))
167
+ && !(str::starts_with(name, ".")
168
+ || str::starts_with(name, "#")
169
+ || str::starts_with(name, "~"))
170
171
172
fn make_test(&config config, &str testfile) -> test::test_desc {
0 commit comments