Add DeepState_TakeOver() interface

This commit is contained in:
Joe Ranweiler
2018-02-20 10:31:29 -08:00
parent 0a746ca078
commit 45fcfe0921
2 changed files with 15 additions and 0 deletions
+13
View File
@@ -364,6 +364,19 @@ void DrMemFuzzFunc(volatile uint8_t *buff, size_t size) {
}
}
int DeepState_TakeOver(void) {
struct DeepState_TestInfo test = {
.prev = NULL,
.test_func = NULL,
.test_name = "<__TAKE_OVER_TEST>",
.file_name = "<__TAKE_OVER_FILE>",
.line_number = 0,
};
DeepState_Begin(&test);
return 0;
}
/* Notify that we're about to begin a test while running under Dr. Fuzz. */
void DeepState_BeginDrFuzz(struct DeepState_TestInfo *test) {
DeepState_DrFuzzTest = test;