From 850523683d1d4fb36325fedb0b0f291eda720d98 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 18 Jul 2016 10:21:42 +0000 Subject: [PATCH] tests: check verbose decoding of msg_name* fields of struct mmsghdr array * 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 | 1 + tests/Makefile.am | 2 ++ tests/mmsg_name-v.c | 4 ++++ tests/mmsg_name-v.test | 7 +++++++ 4 files changed, 14 insertions(+) create mode 100644 tests/mmsg_name-v.c create mode 100755 tests/mmsg_name-v.test diff --git a/tests/.gitignore b/tests/.gitignore index 455952b4..fa20bbde 100644 --- a/tests/.gitignore +++ b/tests/.gitignore @@ -139,6 +139,7 @@ mmap mmap64 mmsg mmsg_name +mmsg_name-v mount move_pages mq diff --git a/tests/Makefile.am b/tests/Makefile.am index d4b485bb..f32fc8b7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 index 00000000..60bd2bc1 --- /dev/null +++ b/tests/mmsg_name-v.c @@ -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 index 00000000..ab8dfba6 --- /dev/null +++ b/tests/mmsg_name-v.test @@ -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 -- 2.40.0