diff options
author | 2023-02-03 00:20:52 +0000 | |
---|---|---|
committer | 2023-05-17 19:07:16 +0000 | |
commit | eaf7f5ecb98ec34b1615ed289e369cef9f5bec2c (patch) | |
tree | bf46573f02db6acba6e2f0df00e5c32ce0b327d3 /java/fuzz_test.go | |
parent | a2244043eacf0871fa43fe7de3824330cd0e4eb6 (diff) |
Fix Soong code, remove dead code, and clean up code for Java fuzz
(cherry picked from commit fdf043a7b109250447f7c89bbeb29a1726a4d602)
Test: built fuzz targets locally and tested them with Jazzer
Change-Id: I3ff487ba4e34289e0f53f2077463f524f4bf4f11
Diffstat (limited to 'java/fuzz_test.go')
-rw-r--r-- | java/fuzz_test.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/java/fuzz_test.go b/java/fuzz_test.go index 186c3aa95..dd1e96b3e 100644 --- a/java/fuzz_test.go +++ b/java/fuzz_test.go @@ -31,18 +31,16 @@ var prepForJavaFuzzTest = android.GroupFixturePreparers( func TestJavaFuzz(t *testing.T) { result := prepForJavaFuzzTest.RunTestWithBp(t, ` - java_fuzz_host { + java_fuzz { name: "foo", srcs: ["a.java"], + host_supported: true, + device_supported: false, libs: ["bar"], static_libs: ["baz"], jni_libs: [ "libjni", ], - sanitizers: [ - "address", - "fuzzer", - ], } java_library_host { @@ -84,7 +82,7 @@ func TestJavaFuzz(t *testing.T) { } ctx := result.TestContext - foo := ctx.ModuleForTests("foo", osCommonTarget).Module().(*JavaFuzzLibrary) + foo := ctx.ModuleForTests("foo", osCommonTarget).Module().(*JavaFuzzTest) expected := "lib64/libjni.so" if runtime.GOOS == "darwin" { |