diff mbox series

Blacklist vhangup() syscall in crash02 test

Message ID 20200127093935.8223-1-mdoucha@suse.cz
State Accepted
Headers show
Series Blacklist vhangup() syscall in crash02 test | expand

Commit Message

Martin Doucha Jan. 27, 2020, 9:39 a.m. UTC
The vhangup() syscall logs the current terminal out which some external
testing tools interpret as a failure. Blacklist the syscall in crash02 test
since there's no combination of arguments that could cause a kernel crash.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/misc/crash/crash02.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Cyril Hrubis Jan. 28, 2020, 2:04 p.m. UTC | #1
Hi!
Pushed, thanks.
diff mbox series

Patch

diff --git a/testcases/misc/crash/crash02.c b/testcases/misc/crash/crash02.c
index cddedc102..f69edf7e1 100644
--- a/testcases/misc/crash/crash02.c
+++ b/testcases/misc/crash/crash02.c
@@ -470,6 +470,9 @@  int in_blacklist(int sysno)
 #endif /* __ia64__ */
 #if defined(__NR_clone) && __NR_clone
 		SYS_clone,
+#endif
+#if defined(__NR_vhangup) && __NR_vhangup
+		__NR_vhangup,	/* int vhangup(void); - terminal logout */
 #endif
 		-1
 	};