From: David Levine Date: Wed, 10 Aug 2016 15:47:36 +0000 (-0400) Subject: Use pwd -P to canonicalize MH_TEST_DIR. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/0e53922c809ad393fc8b773356bee4ea2aa79ae0?hp=7cb0987a56bd9b3dd24690f8999ec549487bcb62 Use pwd -P to canonicalize MH_TEST_DIR. (cherry picked from commit 6f94c7d978b034d34319236e8a868a5b225605c0) --- diff --git a/test/common.sh.in b/test/common.sh.in index 6336ce96..4635f9c5 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -5,9 +5,9 @@ #### The following variables are set by "make check". Ensure #### that they are set here so that individual tests can be run #### outside of make. Requires that MH_OBJ_DIR be set on entry. -#### Use the result of cd and pwd so that the result will agree +#### Use the result of cd and pwd -P so that the result will agree #### with what getcwd(3) returns. -test -z "$MH_TEST_DIR" && MH_TEST_DIR=`cd "$MH_OBJ_DIR/test/testdir" && pwd` +test -z "$MH_TEST_DIR" && MH_TEST_DIR=`cd "$MH_OBJ_DIR/test/testdir" && pwd -P` export MH_TEST_DIR test -z "$MH_INST_DIR" && MH_INST_DIR="${MH_TEST_DIR}/inst" test -z "$MH_VERSION" && MH_VERSION="@VERSION@" diff --git a/test/mhstore/test-mhstore b/test/mhstore/test-mhstore index 0c94dc0b..716c2dd7 100755 --- a/test/mhstore/test-mhstore +++ b/test/mhstore/test-mhstore @@ -23,12 +23,6 @@ actual="$MH_TEST_DIR/test-mhstore$$.actual" actual_err="$MH_TEST_DIR/test-mhmail$$.actual_err" cd "$MH_TEST_DIR" -# ???? debug -echo MH_TEST_DIR=$MH_TEST_DIR -echo 'PWD ='$PWD -echo 'pwd ='`pwd` -echo 'pwd -L='`pwd -L` -echo 'pwd -P='`pwd -P` # check with no options and no current message run_test 'mhstore' 'mhstore: no cur message'