summaryrefslogtreecommitdiff
path: root/test/lib/shunit2
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-23 19:29:53 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-23 19:29:53 -0300
commit99493a15bde1b1c0d2d8f2ccc985da32570aacec (patch)
tree781b603cf679870510acc33ac98ac7d32e3f9aa6 /test/lib/shunit2
parent30525051311cab57d27dcd4fd42284dc142696e1 (diff)
rename generic variables
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