From: Dmitry V. Levin Date: Thu, 4 Feb 2016 01:29:35 +0000 (+0000) Subject: readlinkat.test: use readlink.test X-Git-Tag: v4.12~600 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2eb27c73ecca59ebfd101815b50b26d64ddc0ac;p=strace readlinkat.test: use readlink.test * tests/readlink.test (syscall): Initialize from $0. * tests/readlinkat.test: Source readlink.test. --- diff --git a/tests/readlink.test b/tests/readlink.test index 579b83ff..48ab7e12 100755 --- a/tests/readlink.test +++ b/tests/readlink.test @@ -4,7 +4,7 @@ . "${srcdir=.}/init.sh" -syscall=readlink +syscall=${ME_%.test} target=$syscall.c link=$syscall.link OUT="$LOG.out" diff --git a/tests/readlinkat.test b/tests/readlinkat.test index d3ce0f89..229c8e1e 100755 --- a/tests/readlinkat.test +++ b/tests/readlinkat.test @@ -2,20 +2,4 @@ # 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 "$LOG" "$OUT" - -rm -f -- "$OUT" $link - -exit 0 +. "${srcdir=.}/readlink.test"