tests/basic ensure that the directory is actually an absolute path, not a relative...
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 4 Feb 2009 20:03:25 +0000 (15:03 -0500)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 4 Feb 2009 20:03:25 +0000 (15:03 -0500)
tests/basic

index 0cad727ca941d95715bccc4a1a040baf189521bb..455c0578fb90d4a80f35fe79fe926ab9b307abcc 100755 (executable)
@@ -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.