Skip to content

Commit 98db88b

Browse files
committed
Fix test bug generating expected value on 32-bit system
1 parent d254e62 commit 98db88b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gix-path/src/env/git.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,11 @@ mod tests {
505505
}
506506
[only] => {
507507
assert_eq!(pf.maybe_64bit, None, "It gives one path only if none can be 64-bit.");
508+
let suffix_x86 = only
509+
.strip_prefix(pf.x86.as_path())
510+
.expect("The one path it gives is the 32-bit path.");
508511
Self {
509-
x86: only,
512+
x86: suffix_x86,
510513
maybe_64bit: None,
511514
}
512515
}

0 commit comments

Comments
 (0)