X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2e04b8ea0e57e411665aa6a8814ff65db0d4cd2b..7cb0987a56bd9b3dd24690f8999ec549487bcb62:/test/common.sh.in diff --git a/test/common.sh.in b/test/common.sh.in index 1bf64c59..6336ce96 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -5,7 +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. -test -z "$MH_TEST_DIR" && MH_TEST_DIR="$MH_OBJ_DIR/test/testdir" +#### Use the result of cd and pwd 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` export MH_TEST_DIR test -z "$MH_INST_DIR" && MH_INST_DIR="${MH_TEST_DIR}/inst" test -z "$MH_VERSION" && MH_VERSION="@VERSION@"