strace/tests/readlinkat.test
Dmitry V. Levin c633188e82 tests: convert readlink.test and readlinkat.test from match_awk to match_diff
* tests/readlink.c (main): Print expected output.
* tests/readlinkat.c (main): Likewise.
* tests/readlink.test: Use match_diff instead of match_awk.
* tests/readlinkat.test: Likewise.
* tests/readlink.awk: Remove.
* tests/readlinkat.awk: Likewise.
* tests/Makefile.am (EXTRA_DIST): Remove readlink.awk and readlinkat.awk.
2015-08-28 08:43:57 +00:00

22 lines
341 B
Bash
Executable File

#!/bin/sh
# Check readlinkat syscall decoding.
. "${srcdir=.}/init.sh"
syscall=readlinkat
target=$syscall.c
link=$syscall.link
OUT="$LOG.out"
ln -snf $target $link ||
framework_skip_ 'failed to create a symlink'
run_prog > /dev/null
run_strace -e $syscall -xx -s3 $args > "$OUT"
match_diff "$OUT" "$LOG"
rm -f -- "$OUT" $link
exit 0