strace/tests/rename.test
Fei Jie a4128a75f5 tests: add rename.test
* tests/rename.c: New file.
* tests/rename.test: New test.
* tests/.gitignore: Add rename.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add rename.test.
2016-03-01 08:55:36 +00:00

12 lines
184 B
Bash
Executable File

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