]> granicus.if.org Git - strace/commitdiff
tests: check verbose decoding of msg_name* fields of struct mmsghdr array
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Jul 2016 10:21:42 +0000 (10:21 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 19 Jul 2016 17:46:33 +0000 (17:46 +0000)
* tests/mmsg_name-v.c: New file.
* tests/mmsg_name-v.test: New test.
* tests/.gitignore: Add mmsg_name-v.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add mmsg_name-v.test.

tests/.gitignore
tests/Makefile.am
tests/mmsg_name-v.c [new file with mode: 0644]
tests/mmsg_name-v.test [new file with mode: 0755]

index 455952b432f37375005a1c7887a645e09a4050a9..fa20bbde30a52d77a165124bd323cce54352b9bf 100644 (file)
@@ -139,6 +139,7 @@ mmap
 mmap64
 mmsg
 mmsg_name
+mmsg_name-v
 mount
 move_pages
 mq
index d4b485bb8323891b5513c10d721daf5f664ef230..f32fc8b7c35d76f92eff9e8d4b420bc33c7d53ef 100644 (file)
@@ -195,6 +195,7 @@ check_PROGRAMS = \
        mmap64 \
        mmsg \
        mmsg_name \
+       mmsg_name-v \
        mount \
        move_pages \
        mq \
@@ -518,6 +519,7 @@ DECODER_TESTS = \
        mmap64.test \
        mmsg.test \
        mmsg_name.test \
+       mmsg_name-v.test \
        mount.test \
        move_pages.test \
        mq.test \
diff --git a/tests/mmsg_name-v.c b/tests/mmsg_name-v.c
new file mode 100644 (file)
index 0000000..60bd2bc
--- /dev/null
@@ -0,0 +1,4 @@
+/* This file is part of mmsg_name-v strace test. */
+#define VERBOSE_MMSGHDR
+#define TEST_NAME "mmsg_name-v"
+#include "mmsg_name.c"
diff --git a/tests/mmsg_name-v.test b/tests/mmsg_name-v.test
new file mode 100755 (executable)
index 0000000..ab8dfba
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Check verbose decoding of msg_name* fields of struct msghdr array argument
+# of sendmmsg and recvmmsg syscalls.
+
+. "${srcdir=.}/init.sh"
+run_strace_match_diff -v -a25 -e trace=sendmmsg,recvmmsg