We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7af90d commit 46c387bCopy full SHA for 46c387b
src/bootstrap/src/core/config/tests.rs
@@ -518,7 +518,9 @@ fn test_explicit_stage() {
518
519
#[test]
520
fn test_exclude() {
521
- let config = parse("build.exclude=[\"test/codegen\"]");
+ use std::path::MAIN_SEPARATOR;
522
+ let exclude_path = format!("test{}codegen", MAIN_SEPARATOR);
523
+ let config = parse(&format!("build.exclude=[\"{}\"]", exclude_path));
524
525
let first_excluded = config
526
.skip
@@ -527,5 +529,5 @@ fn test_exclude() {
527
529
.to_str()
528
530
.expect("Failed to convert excluded path to string");
531
- assert_eq!(first_excluded, "test/codegen");
532
+ assert_eq!(first_excluded, exclude_path);
533
}
0 commit comments