From c8fc6612567b742c1645e04d23ebfb0db07b9a5c Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 18 Apr 2009 21:31:38 +0200 Subject: [PATCH] Bugfix: test-lib.sh TEST_DIRECTORY could still contain symlink --- tests/test-lib.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test-lib.sh b/tests/test-lib.sh index b1c6fb7..90b61d8 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -407,6 +407,10 @@ test_done () { esac } +# Use -P to resolve symlinks in our working directory so that the pwd +# in subprocesses equals our $PWD (for pathname comparisons). +cd -P . + # Record our location for reference. TEST_DIRECTORY=$(pwd) @@ -572,7 +576,7 @@ EOF } test_init_todo "$test" -# Use -P to resolve symlinks in our working directory so that the cwd +# Use -P to resolve symlinks in our working directory so that the pwd # in subprocesses equals our $PWD (for pathname comparisons). cd -P "$test" || exit 1