7497b1c700
* tests/fstatx.c (IS_FSTAT): Define to 1. * tests/fstatat64.c [__GLIBC__ && __sparc64__] (TEST_BOGUS_STRUCT_STAT): Define to 0. * tests/xstatx.c [!IS_STAT] (IS_STAT): Define to 0. [!TEST_BOGUS_STRUCT_STAT] (TEST_BOGUS_STRUCT_STAT): Define to 1. (main): Add a check for non-available pointer and a check for block device file. * tests/statx.sh: Add tracing of /dev/full file, specify alignment. * tests/fstat.test: Specify alignment.
20 lines
362 B
Bash
Executable File
20 lines
362 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 -a21 $args > "$OUT"
|
|
match_diff "$LOG" "$OUT"
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|