]> diplodocus.org Git - nmh/commitdiff
Use pwd -P to canonicalize MH_TEST_DIR.
authorDavid Levine <levinedl@acm.org>
Wed, 10 Aug 2016 15:47:36 +0000 (11:47 -0400)
committerDavid Levine <david.levine@gonift.com>
Wed, 10 Aug 2016 16:02:46 +0000 (12:02 -0400)
(cherry picked from commit 6f94c7d978b034d34319236e8a868a5b225605c0)

test/common.sh.in
test/mhstore/test-mhstore

index 6336ce9..4635f9c 100644 (file)
@@ -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@"
index 0c94dc0..716c2dd 100755 (executable)
@@ -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'