summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-12-05 02:58:55 +0100
committerBruno Haible <bruno@clisp.org>2011-12-05 02:58:55 +0100
commitc69114d48295481373ee197c72214877b909414e (patch)
tree9dc3fb518a0ff1b620bc6f983b19e8838baae4b8
parentbe67080286a44cbc2e213adaa03ad2edc1137461 (diff)
downloadgnulib-c69114d48295481373ee197c72214877b909414e.tar.gz
tests: Avoid spurious error message on platforms without mktemp program.
* tests/init.sh (mktempd_): Run mktemp in a subcommand.
-rw-r--r--ChangeLog6
-rw-r--r--tests/init.sh2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0bd5d06293..0cfb578729 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
2011-12-04 Bruno Haible <bruno@clisp.org>
+ Jim Meyering <meyering@redhat.com>
+
+ tests: Avoid spurious error message on platforms without mktemp program.
+ * tests/init.sh (mktempd_): Run mktemp in a subcommand.
+
+2011-12-04 Bruno Haible <bruno@clisp.org>
sethostname: Fix documentation.
* doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
diff --git a/tests/init.sh b/tests/init.sh
index e2f61190fa..19c0cf4ae8 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -521,7 +521,7 @@ mktempd_ ()
esac
# First, try to use mktemp.
- d=`unset TMPDIR; mktemp -d -t -p "$destdir_" "$template_" 2>/dev/null` \
+ d=`unset TMPDIR; { mktemp -d -t -p "$destdir_" "$template_"; } 2>/dev/null` \
|| fail=1
# The resulting name must be in the specified directory.