Dmitry V. Levin
f14a8e1665
* tests/sendfile.test: Use match_diff instead of match_grep. * tests/sendfile64.test: Likewise. * tests/time.test: Likewise. * tests/utime.test: Likewise. * tests/xet_robust_list.test: Likewise. * tests/sendfile.c (main): Update match patterns for match_diff. * tests/sendfile64.c (main): Likewise. * tests/time.c (main): Likewise. * tests/utime.c (main): Likewise. * tests/xet_robust_list.c (main): Likewise.
24 lines
432 B
Bash
Executable File
24 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 "$OUT" "$LOG"
|
|
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|