From b3a93d27e57e0494d3140e6c62c9e621e0ea90c8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 5 Dec 2011 02:58:55 +0100 Subject: [PATCH] tests: Avoid spurious error message on platforms without mktemp program. * tests/init.sh (mktempd_): Run mktemp in a subcommand. (cherry picked from commit c69114d48295481373ee197c72214877b909414e) --- ChangeLog | 6 ++++++ tests/init.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cabef931a..9891f8eb4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-12-04 Bruno Haible + Jim Meyering + + tests: Avoid spurious error message on platforms without mktemp program. + * tests/init.sh (mktempd_): Run mktemp in a subcommand. + 2011-12-03 Bruno Haible Fix module descriptions syntax. diff --git a/tests/init.sh b/tests/init.sh index e2f61190f..19c0cf4ae 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. -- 2.11.0