* tests/test-nlcanon.sh: Handle the --no-reexec option (from init.sh).
+2025-08-11 Bruno Haible <bruno@clisp.org>
+
+ nlcanon tests: Fix test failure on Solaris.
+ * tests/test-nlcanon.sh: Handle the --no-reexec option (from init.sh).
+
2025-08-11 Bruno Haible <bruno@clisp.org>
nlcanon: Make it work on OpenBSD.
#!/bin/sh
-if test $# != 0; then
- # Callee.
- printf 'stdout-contents\r\n'
- printf 'stderr-contents\r\n' 1>&2
- exit $1
-else
+if test $# = 0 || { test $# = 1 && test "x$1" = "x--no-reexec"; }; then
# Unit test.
. "${srcdir=.}/init.sh"; path_prepend_ .
test $? != 0 || Exit 37
Exit 0
+else
+ # Callee.
+ printf 'stdout-contents\r\n'
+ printf 'stderr-contents\r\n' 1>&2
+ exit $1
fi