>From c07e16b04eca6e678977bc4f7a5358bf98805431 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sat, 8 Jun 2024 02:56:48 -0700 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ tests/init.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b9cda80d82..58fe6afdba 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-07 Bruno Haible pthread_sigmask tests: Avoid failure due to known NetBSD 10.0 bug. 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 && -- 2.45.2