From 1274e2748736576f12dd31664e7c633622d662ff Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 5 Jun 2017 13:11:44 +0000 Subject: [PATCH] tests: change netlink_protocol.test to trace sendto syscalls only * tests/gen_tests.in (netlink_protocol): Replace %network with sendto. * tests/netlink_protocol.c (main): Update expected output. --- tests/gen_tests.in | 2 +- tests/netlink_protocol.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/gen_tests.in b/tests/gen_tests.in index 8f154309..61375f18 100644 --- a/tests/gen_tests.in +++ b/tests/gen_tests.in @@ -184,7 +184,7 @@ munlockall -a13 nanosleep -a20 net-icmp_filter -e trace=getsockopt,setsockopt net-sockaddr -a24 -e trace=connect -netlink_protocol -e trace=%network +netlink_protocol -e trace=sendto newfstatat -a32 -v -P stat.sample -P /dev/full old_mmap -a11 -e trace=mmap oldfstat -a18 -v -P stat.sample diff --git a/tests/netlink_protocol.c b/tests/netlink_protocol.c index 89b3c0a4..64536003 100644 --- a/tests/netlink_protocol.c +++ b/tests/netlink_protocol.c @@ -375,12 +375,8 @@ int main(void) if ((fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG)) == -1) perror_msg_and_skip("socket AF_NETLINK"); - printf("socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG) = %d\n", - fd); if (bind(fd, (struct sockaddr *) &addr, len)) perror_msg_and_skip("bind"); - printf("bind(%d, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}" - ", %u) = 0\n", fd, len); char *path; if (asprintf(&path, "/proc/self/fd/%u", fd) < 0)