android_mt6572_jiabo/external/strace/tests/utime.test
2025-09-05 16:56:03 +08:00

23 lines
432 B
Bash
Executable file

#!/bin/sh
# Check decoding of utime syscall.
. "${srcdir=.}/init.sh"
$STRACE -e utime -h > /dev/null ||
skip_ 'utime syscall is not supported on this architecture'
OUT="$LOG.out"
run_prog > /dev/null
run_strace -e utime $args > "$OUT"
check_prog grep
LC_ALL=C grep -x "utime(.*" "$LOG" > /dev/null || {
rm -f "$OUT"
skip_ 'test executable does not use utime syscall'
}
match_diff "$LOG" "$OUT"
rm -f "$OUT"
exit 0