diff options
author | Bruno Haible <bruno@clisp.org> | 2011-12-05 02:58:55 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-12-05 02:58:55 +0100 |
commit | c69114d48295481373ee197c72214877b909414e (patch) | |
tree | 9dc3fb518a0ff1b620bc6f983b19e8838baae4b8 | |
parent | be67080286a44cbc2e213adaa03ad2edc1137461 (diff) | |
download | gnulib-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-- | ChangeLog | 6 | ||||
-rw-r--r-- | tests/init.sh | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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. |