summaryrefslogtreecommitdiff
path: root/test/lib/shunit2
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/shunit2')
-rwxr-xr-xtest/lib/shunit210
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lib/shunit2 b/test/lib/shunit2
index 8862ffd..1462562 100755
--- a/test/lib/shunit2
+++ b/test/lib/shunit2
@@ -698,7 +698,7 @@ _shunit_mktempDir()
_shunit_random_=`expr ${_shunit_date_} / $$`
fi
- _shunit_tmpDir_="${TMPDIR:-/tmp}/shunit.${_shunit_random_}"
+ _shunit_tmpDir_="${temporary_directory:-/tmp}/shunit.${_shunit_random_}"
( umask 077 && mkdir "${_shunit_tmpDir_}" ) || \
_shunit_fatal 'could not create temporary directory! exiting'
@@ -995,8 +995,8 @@ __shunit_tmpDir=`_shunit_mktempDir`
# provide a public temporary directory for unit test scripts
# TODO(kward): document this
-SHUNIT_TMPDIR="${__shunit_tmpDir}/tmp"
-mkdir "${SHUNIT_TMPDIR}"
+SHUNIT_temporary_directory="${__shunit_tmpDir}/tmp"
+mkdir "${SHUNIT_temporary_directory}"
# setup traps to clean up after ourselves
trap '_shunit_cleanup EXIT' 0
@@ -1008,10 +1008,10 @@ _shunit_mktempFunc
PATH="${__shunit_tmpDir}:${PATH}"
# make sure phantom functions are executable. this will bite if /tmp (or the
-# current $TMPDIR) points to a path on a partition that was mounted with the
+# current $temporary_directory) points to a path on a partition that was mounted with the
# 'noexec' option. the noexec command was created with _shunit_mktempFunc().
noexec 2>/dev/null || _shunit_fatal \
- 'please declare TMPDIR with path on partition with exec permission'
+ 'please declare temporary_directory with path on partition with exec permission'
# we must manually source the tests in standalone mode
if [ "${__shunit_mode}" = "${__SHUNIT_MODE_STANDALONE}" ]; then