* [LTP] [PATCH] Blacklist vhangup() syscall in crash02 test
@ 2020-01-27 9:39 Martin Doucha
2020-01-28 14:04 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Martin Doucha @ 2020-01-27 9:39 UTC (permalink / raw)
To: ltp
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(+)
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
};
--
2.24.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-28 14:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-27 9:39 [LTP] [PATCH] Blacklist vhangup() syscall in crash02 test Martin Doucha
2020-01-28 14:04 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox