Dmitry V. Levin
579a4aae8a
* tests/init.sh (NAME): New variable, defined to ${ME_%.test}. (run_prog, match_awk, match_diff, match_grep): Replace ${ME_%.test} with $NAME. * tests/fcntl.test: Likewise. * tests/fstat.test: Likewise. * tests/mmap.test: Likewise. * tests/net-y-unix.test: Likewise. * tests/net-yy-inet.test: Likewise. * tests/net-yy-unix.test: Likewise. * tests/open.test: Likewise. * tests/openat.test: Likewise. * tests/poll.test: Likewise. * tests/ppoll.test: Likewise. * tests/readlink.test: Likewise. * tests/select.test: Likewise. * tests/statx.sh: Likewise. * tests/uname.test: Likewise.
20 lines
357 B
Bash
Executable File
20 lines
357 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check fstat syscall decoding.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
# strace -P is implemented using /proc/self/fd
|
|
[ -d /proc/self/fd/ ] ||
|
|
framework_skip_ '/proc/self/fd/ is not available'
|
|
|
|
syscall=$NAME
|
|
run_prog > /dev/null
|
|
sample=$syscall.sample
|
|
> "$sample"
|
|
run_strace -ve$syscall -P$sample $args > "$OUT"
|
|
match_diff "$LOG" "$OUT"
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|