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.
This commit is contained in:
Дмитрий Левин 2017-06-05 13:11:44 +00:00
parent 5c8d11b682
commit 1274e27487
2 changed files with 1 additions and 5 deletions

View 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

View 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)