Dmitry V. Levin
c633188e82
* 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.
22 lines
341 B
Bash
Executable File
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
|