diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-01-31 10:19:26 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-01-31 11:35:53 +0100 |
| commit | 724adc544590747ce47c3be1b4a63951b7171188 (patch) | |
| tree | a1ef275bb92fb78e1b1ca8bb2b5ac45e5c456b94 /executor/common_test.h | |
| parent | 31fc335d7c12b81b54063439f70fee090b6f07a4 (diff) | |
sys/test/test: add tests for test exiting in the middle of execution
Diffstat (limited to 'executor/common_test.h')
| -rw-r--r-- | executor/common_test.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/executor/common_test.h b/executor/common_test.h index 9e3dcd6ff..826d2c8d8 100644 --- a/executor/common_test.h +++ b/executor/common_test.h @@ -27,6 +27,15 @@ static long syz_errno(long v) } #endif +#if SYZ_EXECUTOR || __NR_syz_exit +// syz_exit(status int32) +static long syz_exit(long status) +{ + _exit(status); + return 0; +} +#endif + #if SYZ_EXECUTOR || __NR_syz_compare #include <errno.h> #include <string.h> |
