From f2eb27c73ecca59ebfd101815b50b26d64ddc0ac Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 4 Feb 2016 01:29:35 +0000 Subject: [PATCH] readlinkat.test: use readlink.test * tests/readlink.test (syscall): Initialize from $0. * tests/readlinkat.test: Source readlink.test. --- tests/readlink.test | 2 +- tests/readlinkat.test | 18 +----------------- 2 files changed, 2 insertions(+), 18 deletions(-) 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" -- 2.50.1