From: Collin Funk Date: Sat, 8 Jun 2024 09:56:48 +0000 (-0700) Subject: test-framework-sh: Don't leave temporary directories on NetBSD. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d22a5179384adc4029ed6b522ade89932f8f50e0;p=gnulib.git test-framework-sh: Don't leave temporary directories on NetBSD. Reported by Taylor R Campbell in * tests/init.sh (mktempd_): Don't use mktemp with the -t option as it leads to uncleaned temporary directories on NetBSD. --- diff --git a/ChangeLog b/ChangeLog index 9fafd39f69..5de7779195 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-06-08 Collin Funk + + test-framework-sh: Don't leave temporary directories on NetBSD. + Reported by Taylor R Campbell in + + * tests/init.sh (mktempd_): Don't use mktemp with the -t option as it + leads to uncleaned temporary directories on NetBSD. + 2024-06-06 Bruno Haible nstrftime: Support time zone names on MSVC. diff --git a/tests/init.sh b/tests/init.sh index c5ec5cfd58..4689b6b758 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -344,7 +344,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 -p "$destdir_" "$template_"; } 2>/dev/null` && # The resulting name must be in the specified directory. case $d in "$destdir_slash_"*) :;; *) false;; esac &&