fuzz: switch fuzz-manager-serialize to MANAGER_TEST_RUN_MINIMAL
When there is no access to cgroups MANAGER_TEST_RUN_BASIC will fail to set up and assert. This happens on a build system like Debian's. Switch to _MINIMAL which skips cgroup and other machine-wide setups.
This commit is contained in:
committed by
Luca Boccassi
parent
9071d6b1a3
commit
eb1c0357aa
@@ -21,7 +21,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
log_set_target(LOG_TARGET_NULL);
|
||||
}
|
||||
|
||||
assert_se(manager_new(RUNTIME_SCOPE_SYSTEM, MANAGER_TEST_RUN_BASIC, &m) >= 0);
|
||||
assert_se(manager_new(RUNTIME_SCOPE_SYSTEM, MANAGER_TEST_RUN_MINIMAL, &m) >= 0);
|
||||
/* Set log overrides as well to make it harder for a serialization file
|
||||
* to switch log levels/targets during fuzzing */
|
||||
manager_override_log_level(m, log_get_max_level());
|
||||
|
||||
Reference in New Issue
Block a user