[LTP] [PATCH] crash02: Blacklist the pause() syscall
Martin Doucha
mdoucha@suse.cz
Thu May 21 13:01:10 CEST 2020
pause() causes the calling process/thread to sleep indefinitely until waken up
by a signal. This will cause test timeouts.
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
testcases/misc/crash/crash02.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/testcases/misc/crash/crash02.c b/testcases/misc/crash/crash02.c
index f69edf7e1..e46c2aa66 100644
--- a/testcases/misc/crash/crash02.c
+++ b/testcases/misc/crash/crash02.c
@@ -473,6 +473,9 @@ int in_blacklist(int sysno)
#endif
#if defined(__NR_vhangup) && __NR_vhangup
__NR_vhangup, /* int vhangup(void); - terminal logout */
+#endif
+#if defined(__NR_pause) && __NR_pause
+ __NR_pause, /* int pause(void); - sleep indefinitely */
#endif
-1
};
--
2.26.2
More information about the ltp
mailing list