Dmitry V. Levin
78e48eb430
* tests/utimensat.c: New file. * tests/utimensat.test: New test. * tests/Makefile.am (check_PROGRAMS): Add utimensat. (TESTS): Add utimensat.test. * configure.ac (AC_CHECK_FUNCS): Add utimensat. * tests/.gitignore: Add utimensat.
22 lines
358 B
Bash
Executable File
22 lines
358 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Check decoding of utimensat syscall.
|
|
|
|
. "${srcdir=.}/init.sh"
|
|
|
|
run_prog > /dev/null
|
|
OUT="$LOG.out"
|
|
run_strace -e utimensat $args > "$OUT"
|
|
|
|
check_prog grep
|
|
LC_ALL=C grep -x "utimensat(.*" "$LOG" > /dev/null || {
|
|
rm -f "$OUT"
|
|
skip_ 'test executable does not use utimensat syscall'
|
|
}
|
|
|
|
match_diff "$OUT" "$LOG"
|
|
|
|
rm -f "$OUT"
|
|
|
|
exit 0
|