]> granicus.if.org Git - strace/commitdiff
tests: change netlink_protocol.test to trace sendto syscalls only
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 5 Jun 2017 13:11:44 +0000 (13:11 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 5 Jun 2017 14:56:08 +0000 (14:56 +0000)
* tests/gen_tests.in (netlink_protocol): Replace %network with sendto.
* tests/netlink_protocol.c (main): Update expected output.

tests/gen_tests.in
tests/netlink_protocol.c

index 8f154309bed19c4c97683602aacd6753f3aa2753..61375f1879b6c6624b09c8c3fcd2d10d24d65797 100644 (file)
@@ -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
index 89b3c0a491f4477f2bf9f7d9f52f8ad0ac2ce080..64536003a047909efbcc44a2cb9f622e3681f59e 100644 (file)
@@ -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)