diff options
author | 2022-11-17 20:25:08 +0000 | |
---|---|---|
committer | 2022-11-17 21:46:48 +0000 | |
commit | 5cb82e36bedc563207c8d05c5e238281806a3dac (patch) | |
tree | 03222c3b39cb740f8c275c770cc054b9a8e28ff6 /java/fuzz_test.go | |
parent | 775f2cb3cd58800b446f13d8320fe4eedae61b47 (diff) |
Add java/fuzz_test.go to test sources
Context
- fuzz_test.go is not listed in the soong/java test sources and is not
running on CI.
Implementation
- Fix fuzz_test.go and add to test sources
Test: m
Change-Id: If2685c646dec4885fc42d7760992309bfa9da382
Diffstat (limited to 'java/fuzz_test.go')
-rw-r--r-- | java/fuzz_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/java/fuzz_test.go b/java/fuzz_test.go index 0a2c94517..6e5d912cb 100644 --- a/java/fuzz_test.go +++ b/java/fuzz_test.go @@ -65,9 +65,8 @@ func TestJavaFuzz(t *testing.T) { osCommonTarget := result.Config.BuildOSCommonTarget.String() - osCommonTargetWithSan := osCommonTarget + "_asan" + "_fuzzer" - javac := result.ModuleForTests("foo", osCommonTargetWithSan).Rule("javac") - combineJar := result.ModuleForTests("foo", osCommonTargetWithSan).Description("for javac") + javac := result.ModuleForTests("foo", osCommonTarget).Rule("javac") + combineJar := result.ModuleForTests("foo", osCommonTarget).Description("for javac") if len(javac.Inputs) != 1 || javac.Inputs[0].String() != "a.java" { t.Errorf(`foo inputs %v != ["a.java"]`, javac.Inputs) @@ -85,9 +84,9 @@ func TestJavaFuzz(t *testing.T) { } ctx := result.TestContext - foo := ctx.ModuleForTests("foo", osCommonTargetWithSan).Module().(*JavaFuzzLibrary) + foo := ctx.ModuleForTests("foo", osCommonTarget).Module().(*JavaFuzzLibrary) - expected := "libjni.so" + expected := "lib64/libjni.so" if runtime.GOOS == "darwin" { expected = "libjni.dylib" } |