Skip to content

Commit 54cb2cf

Browse files
committed
Fixed old tests.
1 parent dcffff5 commit 54cb2cf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tests/examples.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ macro_rules! test {
8181

8282
eprintln!("path: {}", out_file.to_str().unwrap());
8383
success &= Command::new("git")
84-
.args(&["diff", out_file.to_str().unwrap()])
84+
.args(&["diff", "--exit-code", out_file.to_str().unwrap()])
8585
.env("PAGER", "")
8686
.status()
8787
.expect("could not run git diff")

tests/full.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ macro_rules! full_test {
7777

7878
eprintln!("path: {}", out_file);
7979
success &= Command::new("git")
80-
.args(&["diff", out_file])
80+
.args(&["diff", "--exit-code", out_file])
8181
.env("PAGER", "")
8282
.status()
8383
.expect("could not run git diff")

tests/helper/test.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
#[allow(unused_extern_crates)]
12
extern crate old;
3+
#[allow(unused_extern_crates)]
24
extern crate new;

0 commit comments

Comments
 (0)