]> Savannah Git Hosting - gnulib.git/commitdiff
test-framework-sh: Don't leave temporary directories on NetBSD.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 8 Jun 2024 09:56:48 +0000 (02:56 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 8 Jun 2024 09:56:48 +0000 (02:56 -0700)
Reported by Taylor R Campbell <riastradh@NetBSD.org> in
<https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=58319>

* tests/init.sh (mktempd_): Don't use mktemp with the -t option as it
leads to uncleaned temporary directories on NetBSD.

ChangeLog
tests/init.sh

index b9cda80d820020bce1b9b48af45746acaabf585e..58fe6afdba2815a152e4abe941ed827ed3d5824d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-06-08  Collin Funk  <collin.funk1@gmail.com>
+
+       test-framework-sh: Don't leave temporary directories on NetBSD.
+       Reported by Taylor R Campbell <riastradh@NetBSD.org> in
+       <https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=58319>
+       * 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  <bruno@clisp.org>
 
        pthread_sigmask tests: Avoid failure due to known NetBSD 10.0 bug.
index c5ec5cfd5893fccfeb6dfc0a999f12309fc82e2a..4689b6b758c27009848ef51bf7fe01db95daa205 100644 (file)
@@ -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 &&