Skip to content

Commit 0fb0d9c

Browse files
committed
fix 'explain' test on windows
It's not clear why, but it appears that writing the file with the same content ends up appearing like the file hasn't changed on Windows, at least on the GitHub CI.
1 parent 3879dbe commit 0fb0d9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/e2e/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ fn explain() -> anyhow::Result<()> {
194194
let out = space.run_expect(&mut n2_command(vec!["out"]))?;
195195
assert_output_contains(&out, "up to date");
196196

197-
space.write("in", "")?;
197+
space.write("in", "x")?;
198198
let out = space.run_expect(&mut n2_command(vec!["-d", "explain", "out"]))?;
199199
// The main "explain" log line:
200200
assert_output_contains(&out, "explain: build.ninja:6: manifest changed");

0 commit comments

Comments
 (0)