Skip to content

Commit f6e6256

Browse files
committed
test: normalize paths in Gradle integrity diagnostics
1 parent 182a7df commit f6e6256

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎crates/socket-patch-cli/tests/e2e_vendor_jvm_build.rs‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,10 +1006,12 @@ fn gradle_multi_project_vendor_locked_offline_tamper_and_byte_exact_revert() {
10061006
!ok(&out),
10071007
"the index must reject a tampered jar even with Gradle verification off: {log}"
10081008
);
1009+
// Java prints native separators, while a Windows PathBuf can retain the
1010+
// forward slashes in the fixture's relative repository path.
10091011
assert!(
1010-
log.contains(&format!(
1012+
log.replace('\\', "/").contains(&format!(
10111013
"socket-patch: {} has sha256 {}, pinned {}",
1012-
jar_path.display(),
1014+
jar_path.to_string_lossy().replace('\\', "/"),
10131015
sha256_hex(&tampered),
10141016
sha256_hex(vendored_jar)
10151017
)),

0 commit comments

Comments
 (0)