]> granicus.if.org Git - strace/blob - tests/net-yy-unix.test
08a32b0c92a2f7a30f3e74e1493ed2ef35a07495
[strace] / tests / net-yy-unix.test
1 #!/bin/sh
2 #
3 # Check decoding of address information (inode[->peer][,path])
4 # associated with unix domain socket descriptors.
5 #
6 # Copyright (c) 2014 Masatake YAMATO <yamato@redhat.com>
7 # Copyright (c) 2014-2017 Dmitry V. Levin <ldv@altlinux.org>
8 # All rights reserved.
9 #
10 # SPDX-License-Identifier: GPL-2.0-or-later
11
12 . "${srcdir=.}/init.sh"
13
14 check_prog sed
15
16 run_prog ../netlink_unix_diag
17 run_prog > /dev/null
18 run_strace -a22 -yy -eclose,network $args > "$EXP"
19
20 # Filter out close() calls made by ld.so and libc.
21 sed -n '/socket/,$p' < "$LOG" > "$OUT"
22 match_diff "$OUT" "$EXP"