summaryrefslogtreecommitdiff
path: root/tests/test-lib.sh
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-11-01 18:58:17 +0100
committerJim Meyering <meyering@redhat.com>2007-11-01 20:13:11 +0100
commit636f0e101a5e988da9883574f2aba6f6272b16d0 (patch)
tree6dc83567c93dcb4de7add68bd4b8b74883f958a1 /tests/test-lib.sh
parentd1986f81d0a82b9f5a73a89699ff94559bb7ca16 (diff)
downloadcoreutils-636f0e101a5e988da9883574f2aba6f6272b16d0.tar.xz
Use mktemp, not mkdtemp, to create test directories.
* tests/test-lib.sh: Use the mktemp binary we've just built, not the mkdtemp script. * tests/mkdtemp: Remove file. * tests/Makefile.am (EXTRA_DIST): Remove mkdtemp.
Diffstat (limited to 'tests/test-lib.sh')
-rw-r--r--tests/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh
index 495fd2a05..b90f98ff7 100644
--- a/tests/test-lib.sh
+++ b/tests/test-lib.sh
@@ -80,7 +80,7 @@ this_test=$(this_test_)
# a partition, or to undo any other global state changes.
cleanup_() { :; }
-t_=$($abs_top_srcdir/tests/mkdtemp $test_dir_ cu-$this_test.XXXXXXXXXX) \
+t_=$($abs_top_builddir/src/mktemp -d --tmp="$test_dir_" cu-$this_test.XXXXXXXXXX)\
|| error_ "failed to create temporary directory in $test_dir_"
# Run each test from within a temporary sub-directory named after the