]> Savannah Git Hosting - gnulib.git/commitdiff
tests: Avoid spurious error message on platforms without mktemp program.
authorBruno Haible <bruno@clisp.org>
Mon, 5 Dec 2011 01:58:55 +0000 (02:58 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Dec 2011 01:58:55 +0000 (02:58 +0100)
* tests/init.sh (mktempd_): Run mktemp in a subcommand.

ChangeLog
tests/init.sh

index 0bd5d06293486a3d45e71f4ce0b0d8f525d56f6d..0cfb57872977e021901130b672db2ef40822a4a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index e2f61190facddc4e11d93d69283550ebc4cf1eb9..19c0cf4ae8b2b14779148140413ad25fdfd3d35f 100644 (file)
@@ -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.