Dmitry V. Levin
c1bb87a99d
* 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.
14 lines
191 B
Bash
Executable File
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
|