summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2017-03-12 16:07:01 -0400
committerAndrew Gallant <jamslam@gmail.com>2017-03-12 16:07:31 -0400
commit6ecffec53700a813d4b0cb192d703341a1641122 (patch)
treee23a5257736a58def839ee9fca1decd20e8482aa
parent80e91a1f1d725eb8e331f3613a352edb8b13677b (diff)
Fix test on Windows.
(This is what I get for directly pushing to master.)
-rw-r--r--tests/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tests.rs b/tests/tests.rs
index d56e4952..29848aa1 100644
--- a/tests/tests.rs
+++ b/tests/tests.rs
@@ -1054,7 +1054,7 @@ clean!(regression_405, "test", ".", |wd: WorkDir, mut cmd: Command| {
cmd.arg("-g").arg("!/foo/**");
let lines: String = wd.stdout(&mut cmd);
- assert_eq!(lines, "bar/foo/file2.txt:test\n");
+ assert_eq!(lines, format!("{}:test\n", path("bar/foo/file2.txt")));
});
// See: https://github.com/BurntSushi/ripgrep/issues/7