diff options
author | Fabian Meumertzheim <fabian@meumertzhe.im> | 2022-03-01 10:45:35 +0100 |
---|---|---|
committer | Norbert Schneider <mail@bertschneider.de> | 2022-03-03 11:30:30 +0100 |
commit | 0dbda45a4f6d25ceaf5b168da5d96d5abf410725 (patch) | |
tree | 34999706de0978c0edf37e8902127fa832d9517b /sanitizers | |
parent | 1e81d0a12cf9a57f655e14b87ae6aab83ff99aed (diff) | |
download | jazzer-api-0dbda45a4f6d25ceaf5b168da5d96d5abf410725.tar.gz |
Verify the precise exception reproduced by a reproducer
New and existing verifications performed by the FuzzTargetTestWrapper
are now only done if JAZZER_CI is set. This keeps the tests that do
double duty as examples clean when executed by users, but still
maximizes their test coverage. Developers can specify --config=ci to
benefit from these extended checks.
Diffstat (limited to 'sanitizers')
-rw-r--r-- | sanitizers/src/test/java/com/example/BUILD.bazel | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sanitizers/src/test/java/com/example/BUILD.bazel b/sanitizers/src/test/java/com/example/BUILD.bazel index c38bebc1..5abece30 100644 --- a/sanitizers/src/test/java/com/example/BUILD.bazel +++ b/sanitizers/src/test/java/com/example/BUILD.bazel @@ -54,6 +54,7 @@ java_fuzz_target_test( "ldap/MockInitialContextFactory.java", "ldap/MockLdapContext.java", ], + expected_finding = "javax.naming.directory.InvalidSearchFilterException", target_class = "com.example.LdapSearchInjection", deps = [ "@maven//:com_unboundid_unboundid_ldapsdk", @@ -67,6 +68,7 @@ java_fuzz_target_test( "ldap/MockInitialContextFactory.java", "ldap/MockLdapContext.java", ], + expected_finding = "javax.naming.NamingException", target_class = "com.example.LdapDnInjection", deps = [ "@maven//:com_unboundid_unboundid_ldapsdk", |