strace/tests/ftruncate64.test
Dmitry V. Levin 431d63c13f tests: add ftruncate64.test and truncate64.test
* tests/ftruncate64.c: New file.
* tests/truncate64.c: Likewise.
* tests/ftruncate64.test: New test.
* tests/truncate64.test: Likewise.
* tests/Makefile.am (check_PROGRAMS): Add ftruncate64 and truncate64.
(ftruncate64_CFLAGS, truncate64_CFLAGS): Define.
(TESTS): Add ftruncate64.test and truncate64.test.
* tests/.gitignore: Add ftruncate64 and truncate64.
2015-12-01 08:28:45 +00:00

14 lines
202 B
Bash
Executable File

#!/bin/sh
# Check ftruncate64 syscall decoding.
. "${srcdir=.}/init.sh"
run_prog > /dev/null
OUT="$LOG.out"
run_strace -a36 -eftruncate64 $args > "$OUT"
match_diff "$LOG" "$OUT"
rm -f "$OUT"
exit 0