From c7d79df83191e22a20ad64dd5a1b2d4a1b24b469 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 18 Sep 2024 11:47:01 +0200 Subject: [PATCH] a --- tests/readlink-proc-self-exe.sh | 11 +++++++++++ ...xe.expected => readlink-proc-self-exe.sh-expected} | 0 2 files changed, 11 insertions(+) rename tests/{readlink-proc-self-exe.expected => readlink-proc-self-exe.sh-expected} (100%) diff --git a/tests/readlink-proc-self-exe.sh b/tests/readlink-proc-self-exe.sh index 006a6cd..18b3af7 100755 --- a/tests/readlink-proc-self-exe.sh +++ b/tests/readlink-proc-self-exe.sh @@ -19,4 +19,15 @@ if [ "$ACTUAL_PATH_TO_SELF" != "$EXPECTED_PATH_TO_SELF" ]; then exit 1 fi +ln -s symlinked-binary nested-symlinked-binary +ACTUAL_PATH_TO_SELF=$(./nested-symlinked-binary) +if [ "$ACTUAL_PATH_TO_SELF" != "$EXPECTED_PATH_TO_SELF" ]; then + echo "ERROR(3): Expected '$EXPECTED_PATH_TO_SELF', was '$ACTUAL_PATH_TO_SELF'" + exit 1 +fi + +cd - > /dev/null + +rm -rf $TMPDIR + echo ok diff --git a/tests/readlink-proc-self-exe.expected b/tests/readlink-proc-self-exe.sh-expected similarity index 100% rename from tests/readlink-proc-self-exe.expected rename to tests/readlink-proc-self-exe.sh-expected