Skip to content

Commit b998364

Browse files
committed
Fix test on Windows: reprise
1 parent 5bba21a commit b998364

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/testsuite/build_script.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,6 +2648,17 @@ fn generate_good_d_files() {
26482648

26492649
println!("*.d file content*: {}", &dot_d);
26502650

2651+
#[cfg(windows)]
2652+
assert!(
2653+
lines_match(
2654+
"[..]\\target\\debug\\meow.exe: [..]\\awoo\\barkbarkbark [..]\\awoo\\build.rs[..]",
2655+
&dot_d
2656+
) || lines_match(
2657+
"[..]\\target\\debug\\meow.exe: [..]\\awoo\\build.rs [..]\\awoo\\barkbarkbark[..]",
2658+
&dot_d
2659+
)
2660+
);
2661+
#[cfg(not(windows))]
26512662
assert!(
26522663
lines_match(
26532664
"[..]/target/debug/meow: [..]/awoo/barkbarkbark [..]/awoo/build.rs[..]",
@@ -2676,6 +2687,17 @@ fn generate_good_d_files() {
26762687

26772688
println!("*.d file content with dep-info-basedir*: {}", &dot_d);
26782689

2690+
#[cfg(windows)]
2691+
assert!(
2692+
lines_match(
2693+
"target\\debug\\meow.exe: [..]awoo\\barkbarkbark [..]awoo\\build.rs[..]",
2694+
&dot_d
2695+
) || lines_match(
2696+
"target\\debug\\meow.exe: [..]awoo\\build.rs [..]awoo\\barkbarkbark[..]",
2697+
&dot_d
2698+
)
2699+
);
2700+
#[cfg(not(windows))]
26792701
assert!(
26802702
lines_match(
26812703
"target/debug/meow: [..]awoo/barkbarkbark [..]awoo/build.rs[..]",

0 commit comments

Comments
 (0)