summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-09-15 17:54:02 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-09-15 17:54:02 -0400
commit9298c37a78b5795ba2620b4c8b64707fb0ad5bf3 (patch)
tree382ccb5c5d631fcf4ebf02557eda37782d1bc0d0
parent224f01a6508cececfb327f7692fcab2afb992805 (diff)
downloadbfs-9298c37a78b5795ba2620b4c8b64707fb0ad5bf3.tar.xz
tests.sh: Use a more portable mktemp form.
-rwxr-xr-xtests.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests.sh b/tests.sh
index 9c7c397..f7eb428 100755
--- a/tests.sh
+++ b/tests.sh
@@ -58,7 +58,7 @@ function test_0007() {
}
for i in {1..7}; do
- dir="$(mktemp -d)"
+ dir="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)"
test="test_$(printf '%04d' $i)"
"$test" "$dir"
status=$?