Dmitry V. Levin | c863827 | 2015-12-05 00:02:44 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Check fstat syscall decoding. |
| 4 | |
| 5 | . "${srcdir=.}/init.sh" |
| 6 | |
| 7 | # strace -P is implemented using /proc/self/fd |
| 8 | [ -d /proc/self/fd/ ] || |
| 9 | framework_skip_ '/proc/self/fd/ is not available' |
| 10 | |
Dmitry V. Levin | 579a4aa | 2016-03-30 00:13:56 +0000 | [diff] [blame] | 11 | syscall=$NAME |
Dmitry V. Levin | c863827 | 2015-12-05 00:02:44 +0000 | [diff] [blame] | 12 | run_prog > /dev/null |
Dmitry V. Levin | c863827 | 2015-12-05 00:02:44 +0000 | [diff] [blame] | 13 | sample=$syscall.sample |
| 14 | > "$sample" |
| 15 | run_strace -ve$syscall -P$sample $args > "$OUT" |
| 16 | match_diff "$LOG" "$OUT" |
| 17 | rm -f "$OUT" |
| 18 | |
| 19 | exit 0 |