From 021e53deb42fb8c2902023131b2c2495fd18f6c3 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 28 Feb 2020 14:23:49 -0800 Subject: Fix a couple of shell tests. These didn't work on a system where readlink is a symlink to toybox, ironically. --- tests/sh.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/sh.test b/tests/sh.test index 9aefe2f9..1a8e8829 100755 --- a/tests/sh.test +++ b/tests/sh.test @@ -170,7 +170,7 @@ testing "subshell exit err" '(exit 42); echo $?' "42\n" "" "" # Same thing twice, but how do we cmp if exec exited? #testing 'exec and $$' testing 'echo $$;exec readlink /proc/self' -X="$(which readlink)" +X="$(realpath $(which readlink))" testing "exec in paren" \ '(exec readlink /proc/self/exe);echo hello' "$X\nhello\n" "" "" testing "exec in brackets" \ -- cgit v1.2.3