Adapt replayer test for Windows
Also removes a copy-pasted check for a crash file that is not created by
the replayer.
diff --git a/examples/BUILD.bazel b/examples/BUILD.bazel
index 0d5f6bc..6c1a81e 100644
--- a/examples/BUILD.bazel
+++ b/examples/BUILD.bazel
@@ -168,11 +168,7 @@
)
java_binary(
- name = "JsonSanitizerDenylistCrash",
- args = [
- "com.example.JsonSanitizerDenylistFuzzer",
- "$(location :json_sanitizer_denylist_crash)",
- ],
+ name = "JsonSanitizerReplayerCrash",
data = [
":json_sanitizer_denylist_crash",
],
@@ -184,18 +180,20 @@
)
sh_test(
- name = "JsonSanitizerDenylistCrashTest",
+ name = "JsonSanitizerReplayerCrashTest",
srcs = ["check_for_finding.sh"],
args = [
- "$(location :JsonSanitizerDenylistCrash)",
+ "jazzer/$(rootpath :JsonSanitizerReplayerCrash)",
"com.example.JsonSanitizerDenylistFuzzer",
- "$(location :json_sanitizer_denylist_crash)",
+ "jazzer/$(rootpath :json_sanitizer_denylist_crash)",
],
data = [
- ":JsonSanitizerDenylistCrash",
+ ":JsonSanitizerReplayerCrash",
":json_sanitizer_denylist_crash",
],
- target_compatible_with = SKIP_ON_WINDOWS,
+ deps = [
+ "@bazel_tools//tools/bash/runfiles",
+ ],
)
java_fuzz_target_test(