Update last found time when evaluating an input (#2782)
Co-authored-by: celian <cglenaz> Co-authored-by: Dongjia "toka" Zhang <tokazerkje@outlook.com>
This commit is contained in:
parent
5d70216cc7
commit
09950ccc34
@ -298,7 +298,8 @@ where
|
||||
+ MaybeHasClientPerfMonitor
|
||||
+ UsesInput<Input = <S::Corpus as Corpus>::Input>
|
||||
+ HasCurrentTestcase
|
||||
+ HasSolutions,
|
||||
+ HasSolutions
|
||||
+ HasLastFoundTime,
|
||||
F: Feedback<EM, <S::Corpus as Corpus>::Input, OT, S>,
|
||||
OF: Feedback<EM, <S::Corpus as Corpus>::Input, OT, S>,
|
||||
OT: ObserversTuple<<S::Corpus as Corpus>::Input, S> + Serialize,
|
||||
@ -359,6 +360,9 @@ where
|
||||
if send_events {
|
||||
self.serialize_and_dispatch(state, manager, input, &exec_res, observers, exit_kind)?;
|
||||
}
|
||||
if exec_res != ExecuteInputResult::None {
|
||||
*state.last_found_time_mut() = current_time();
|
||||
}
|
||||
Ok((exec_res, corpus_id))
|
||||
}
|
||||
|
||||
@ -505,7 +509,8 @@ where
|
||||
+ MaybeHasClientPerfMonitor
|
||||
+ HasCurrentTestcase
|
||||
+ UsesInput<Input = <S::Corpus as Corpus>::Input>
|
||||
+ HasExecutions,
|
||||
+ HasExecutions
|
||||
+ HasLastFoundTime,
|
||||
<S::Corpus as Corpus>::Input: Input,
|
||||
S::Solutions: Corpus<Input = <S::Corpus as Corpus>::Input>,
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user