From 306464056c8af8d00798b5ef9195950bd6502314 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 12 Sep 2020 11:05:45 +0200 Subject: sys/test/test: add a hanging test Ensure that we can handle hanging syscalls in all modes. --- 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 ebbff1517..9d9adc36f 100644 --- a/executor/common_test.h +++ b/executor/common_test.h @@ -36,6 +36,15 @@ static long syz_exit(volatile long status) } #endif +#if SYZ_EXECUTOR || __NR_syz_sleep_ms +// syz_sleep_ms(ms intptr) +static long syz_sleep_ms(volatile long ms) +{ + sleep_ms(ms); + return 0; +} +#endif + #if SYZ_EXECUTOR || __NR_syz_compare #include #include -- cgit mrf-deployment