1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/BBA1.5_platform/apps/public/strace-4.16/tests-mx32/oldfstat.test
2024-07-22 01:58:46 -03:00

20 lines
365 B
Bash
Executable File

#!/bin/sh
# Check oldfstat 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 -a21 $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"
exit 0