summaryrefslogtreecommitdiff
path: root/rust/fuzz_test.go
diff options
context:
space:
mode:
author Charisee <chiw@google.com> 2022-03-01 03:02:51 +0000
committer Charisee Chiw <chiw@google.com> 2022-03-02 19:54:47 +0000
commit5ddec432800ceeccda1ff1e9247941b0a7a84ce9 (patch)
tree31aad51230922aad56956639f8dac0e9a987c1a0 /rust/fuzz_test.go
parentff100cdae9c2e239aa702b10b48823d40b07d9ca (diff)
Update `RustDefaultVersion` to 1.59.0
bug: 215232614 Test: TreeHugger and compiling with m rust Change-Id: Ia60c77637ab2e41844010e021656fad0870013ac
Diffstat (limited to 'rust/fuzz_test.go')
-rw-r--r--rust/fuzz_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/fuzz_test.go b/rust/fuzz_test.go
index 98be7c20d..865665eef 100644
--- a/rust/fuzz_test.go
+++ b/rust/fuzz_test.go
@@ -47,17 +47,17 @@ func TestRustFuzz(t *testing.T) {
// Check that compiler flags are set appropriately .
fuzz_libtest := ctx.ModuleForTests("fuzz_libtest", "android_arm64_armv8-a_fuzzer").Rule("rustc")
if !strings.Contains(fuzz_libtest.Args["rustcFlags"], "-Z sanitizer=hwaddress") ||
- !strings.Contains(fuzz_libtest.Args["rustcFlags"], "-C passes='sancov'") ||
+ !strings.Contains(fuzz_libtest.Args["rustcFlags"], "-C passes='sancov-module'") ||
!strings.Contains(fuzz_libtest.Args["rustcFlags"], "--cfg fuzzing") {
- t.Errorf("rust_fuzz module does not contain the expected flags (sancov, cfg fuzzing, hwaddress sanitizer).")
+ t.Errorf("rust_fuzz module does not contain the expected flags (sancov-module, cfg fuzzing, hwaddress sanitizer).")
}
// Check that dependencies have 'fuzzer' variants produced for them as well.
libtest_fuzzer := ctx.ModuleForTests("libtest_fuzzing", "android_arm64_armv8-a_rlib_rlib-std_fuzzer").Output("libtest_fuzzing.rlib")
if !strings.Contains(libtest_fuzzer.Args["rustcFlags"], "-Z sanitizer=hwaddress") ||
- !strings.Contains(libtest_fuzzer.Args["rustcFlags"], "-C passes='sancov'") ||
+ !strings.Contains(libtest_fuzzer.Args["rustcFlags"], "-C passes='sancov-module'") ||
!strings.Contains(libtest_fuzzer.Args["rustcFlags"], "--cfg fuzzing") {
- t.Errorf("rust_fuzz dependent library does not contain the expected flags (sancov, cfg fuzzing, hwaddress sanitizer).")
+ t.Errorf("rust_fuzz dependent library does not contain the expected flags (sancov-module, cfg fuzzing, hwaddress sanitizer).")
}
}