strace/tests/open.test
Dmitry V. Levin 1e7dfc38fd open.test, openat.test: lift /proc requirement
While -P option needs /proc to match descriptors, it does not use
/proc to match pathnames.  As these tests do not need descriptor
match, the /proc requirement can be safely lifted.

* tests/open.test: Lift /proc/self/fd/ requirement.
* tests/openat.test: Likewise.
2016-03-29 03:33:00 +00:00

14 lines
238 B
Bash
Executable File

#!/bin/sh
# Check open syscall decoding.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
syscall=${ME_%.test}
sample=$syscall.sample
run_strace -a30 -e$syscall -P$sample $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"