Skip to content

Commit ef3fd5c

Browse files
committed
add test for exclude feature
1 parent f3fde2a commit ef3fd5c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/bootstrap/src/core/config/tests.rs

+14
Original file line numberDiff line numberDiff line change
@@ -454,3 +454,17 @@ fn check_rustc_if_unchanged_paths() {
454454
assert!(config.src.join(p).exists(), "{p} doesn't exist.");
455455
}
456456
}
457+
458+
#[test]
459+
fn test_exclude() {
460+
let config = parse("build.exclude=[\"test/codegen\"]");
461+
462+
let first_excluded = config
463+
.skip
464+
.first()
465+
.expect("Expected at least one excluded path")
466+
.to_str()
467+
.expect("Failed to convert excluded path to string");
468+
469+
assert_eq!(first_excluded, "test/codegen");
470+
}

0 commit comments

Comments
 (0)