1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2026-10-24 00:48:56 +03:00

nlcanon tests: Fix test failure on Solaris.

* tests/test-nlcanon.sh: Handle the --no-reexec option (from init.sh).
This commit is contained in:
Bruno Haible
2025-08-11 12:04:17 +02:00
parent 0e50f885cd
commit b65a8d11a7
2 changed files with 11 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
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.

View File

@@ -1,11 +1,6 @@
#!/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_ .
@@ -64,4 +59,9 @@ else
test $? != 0 || Exit 37
Exit 0
else
# Callee.
printf 'stdout-contents\r\n'
printf 'stderr-contents\r\n' 1>&2
exit $1
fi