Skip to content

Commit 82cdac6

Browse files
committed
diff tests: make file to patch explicit for missing_lines
GNU patch is getting confused and deciding the patch the wrong file on MacOS.
1 parent 1910cbf commit 82cdac6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/context_diff.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ mod tests {
616616
let _ = fb;
617617
let output = Command::new("patch")
618618
.arg("-p0")
619+
.arg(format!("{target}/alefx"))
619620
.arg("--context")
620621
.stdin(File::open(format!("{target}/abx.diff")).unwrap())
621622
.output()

src/unified_diff.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ mod tests {
771771
let _ = fb;
772772
let output = Command::new("patch")
773773
.arg("-p0")
774+
.arg(format!("{target}/alefx"))
774775
.stdin(File::open(format!("{target}/abx.diff")).unwrap())
775776
.output()
776777
.unwrap();

0 commit comments

Comments
 (0)