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:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user