Dmitry V. Levin
1e7dfc38fd
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.
14 lines
238 B
Bash
Executable File
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"
|