Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH] linux_syscall_numbers: add syscall number to output
@ 2015-12-07  9:37 Jan Stancek
  2015-12-07  9:57 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Stancek @ 2015-12-07  9:37 UTC (permalink / raw)
  To: ltp

Some tests don't pass __NR_* as argument directly, but use a variable.
Because ltp_syscall is a macro that stringifies "NR" argument we get
output such as: "syscall tests[i].syscall not supported on your arch".

Add syscall number to output as well.

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 testcases/kernel/include/regen.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testcases/kernel/include/regen.sh b/testcases/kernel/include/regen.sh
index 9efc4f17cf88..f93f49b7753f 100755
--- a/testcases/kernel/include/regen.sh
+++ b/testcases/kernel/include/regen.sh
@@ -44,7 +44,8 @@ cat << EOF > "${output_pid}"
 	} \\
 	if (__ret == -1 && errno == ENOSYS) { \\
 		tst_brkm(TCONF, CLEANUP, \\
-			"syscall " #NR " not supported on your arch"); \\
+			"syscall(%d) " #NR " not supported on your arch", \\
+			NR); \\
 		errno = ENOSYS; \\
 	} \\
 	__ret; \\
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-07 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07  9:37 [LTP] [PATCH] linux_syscall_numbers: add syscall number to output Jan Stancek
2015-12-07  9:57 ` Cyril Hrubis
2015-12-07 10:04   ` Jan Stancek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox