From 724adc544590747ce47c3be1b4a63951b7171188 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 31 Jan 2019 10:19:26 +0100 Subject: sys/test/test: add tests for test exiting in the middle of execution --- executor/common_test.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'executor/common_test.h') 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 #include -- cgit mrf-deployment