strace/tests/truncate.test
Dmitry V. Levin c1bb87a99d tests: add ftruncate.test and truncate.test
* tests/ftruncate.c: New file.
* tests/truncate.c: Likewise.
* tests/ftruncate.test: New test.
* tests/truncate.test: Likewise.
* tests/Makefile.am (check_PROGRAMS): Add ftruncate and truncate.
(TESTS): Add ftruncate.test and truncate.test.
* tests/.gitignore: Add ftruncate and truncate.
2015-12-01 08:28:42 +00:00

14 lines
191 B
Bash
Executable File

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