Skip to content

Commit 65aed3b

Browse files
committed
Fix test on Windows
1 parent 8611f0b commit 65aed3b

File tree

1 file changed

+2
-2
lines changed
  • tests/run-make/rustdoc-scrape-examples-dep-info

1 file changed

+2
-2
lines changed

tests/run-make/rustdoc-scrape-examples-dep-info/rmake.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ fn main() {
1010
&["--emit=dep-info,invocation-specific"],
1111
);
1212

13-
let content = rfs::read_to_string("foobar.d");
13+
let content = rfs::read_to_string("foobar.d").replace(r"\", "/");
1414
assert_contains(&content, "lib.rs:");
1515
assert_contains(&content, "rustdoc/ex.calls:");
1616

17-
let content = rfs::read_to_string("ex.d");
17+
let content = rfs::read_to_string("ex.d").replace(r"\", "/");
1818
assert_contains(&content, "examples/ex.rs:");
1919
}

0 commit comments

Comments
 (0)