strace/tests/readlinkat.test
Gleb Fotengauer-Malinovskiy 3af6aabe52 tests: add readlink.test and readlinkat.test
* tests/readlink.c: New file.
* tests/readlink.awk: Likewise.
* tests/readlinkat.c: Likewise.
* tests/readlinkat.awk: Likewise.
* tests/readlink.test: New test.
* tests/readlinkat.test: Likewise.
* tests/Makefile.am (check_PROGRAMS): Add readlink and readlinkat.
(TESTS): Add readlink.test and readlinkat.test.
(EXTRA_DIST): Add readlink.awk and readlinkat.awk.
* tests/.gitignore: Add readlink and readlinkat.
2015-08-15 02:21:22 +02:00

17 lines
249 B
Bash
Executable File

#!/bin/sh
# Check readlinkat syscall decoding.
. "${srcdir=.}/init.sh"
ln -sf readlinkat.c readlinkat.link ||
framework_skip_ 'failed to create a symlink'
run_prog
run_strace -e readlinkat -xx -s3 $args
match_awk
rm -f readlinkat.link
exit 0