aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-02-28 14:23:49 -0800
committerRob Landley <rob@landley.net>2020-02-29 07:35:44 -0600
commit021e53deb42fb8c2902023131b2c2495fd18f6c3 (patch)
treed9c5957359f2d50a27da02718afb5064809db02f /tests
parent2413bbe99090868340edcf60823fa3be595604e3 (diff)
downloadtoybox-021e53deb42fb8c2902023131b2c2495fd18f6c3.tar.gz
Fix a couple of shell tests.
These didn't work on a system where readlink is a symlink to toybox, ironically.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/sh.test2
1 files changed, 1 insertions, 1 deletions
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" \