* tests/init.sh (mkdir) [MSys]: New function.
+2024-12-22 Bruno Haible <bruno@clisp.org>
+
+ test-framework-sh: Avoid test suite failures on MSYS2.
+ * tests/init.sh (mkdir) [MSys]: New function.
+
2024-12-22 Bruno Haible <bruno@clisp.org>
execl, execle, execlp: Fix compilation error with gcc 14.
# - try to create the desired directory.
# - make only $MAX_TRIES_ attempts
+# mkdir on msys2 does not support the '-m' option.
+case `(uname -o) 2>/dev/null` in
+ Msys)
+ mkdir ()
+ {
+ if test " $1" = " -m"; then
+ shift; shift
+ fi
+ /bin/mkdir "$@"
+ }
+ ;;
+esac
+
# Helper function. Print $N pseudo-random bytes from a-zA-Z0-9.
rand_bytes_ ()
{