summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-02-04 15:03:25 -0500
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2009-02-04 15:03:25 -0500
commit8eefc1b98f645d1462442cdb357bfcfe06a9c1e4 (patch)
treec18d1a216811b1b5e75abb33295183cd973f21c9 /tests
parentde36d3b27039141ba6402cb91a19a1d852185a92 (diff)
tests/basic ensure that the directory is actually an absolute path, not a relative one.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basic b/tests/basic
index 0cad727..455c057 100755
--- a/tests/basic
+++ b/tests/basic
@@ -90,7 +90,7 @@ trap failed_cleanup EXIT
# make temp dir
mkdir -p "$TESTDIR"/tmp
-TEMPDIR=$(mktemp -d ${TMPDIR:-"$TESTDIR"/tmp}/monkeyspheretest.XXXXXXX)
+TEMPDIR=$(mktemp -d ${TMPDIR:-$(cd "$TESTDIR" && printf "%s" $(pwd)/tmp)}/monkeyspheretest.XXXXXXX)
# Use the local copy of executables first, instead of system ones.
# This should help us test without installing.