[WithObservers] Call the wrapped observer's post run function (#1640)

* [WithObservers] Call the wrapped observer's post run function

* fix typo and naming of variable
This commit is contained in:
Anne Borcherding 2023-10-30 17:58:54 +01:00 committed by GitHub
parent ad33ea086b
commit 976d6b2e97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1693,7 +1693,7 @@ where
self.observers
.pre_exec_child_all(state, input)
.expect("Failed to run post_exec on observers");
.expect("Failed to run pre_exec on observers");
(self.harness_fn)(input);

View File

@ -30,7 +30,9 @@ where
mgr: &mut EM,
input: &Self::Input,
) -> Result<ExitKind, Error> {
self.executor.run_target(fuzzer, state, mgr, input)
let ret = self.executor.run_target(fuzzer, state, mgr, input);
self.executor.post_run_reset();
ret
}
}