tests: don't postprocess stderr with sed
commitbc5aa8e2743e7b56818d54719bf4095a6dc09912
authorAkim Demaille <akim.demaille@gmail.com>
Sun, 29 Aug 2021 07:38:07 +0000 (29 09:38 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Sun, 29 Aug 2021 07:50:02 +0000 (29 09:50 +0200)
treec237fb57357925f805c23c8c2801ca6253b294f2
parent0a82bf5c075fb93fe346f4ff7212dd413fb0d4ad
tests: don't postprocess stderr with sed

On Solaris, sed throws away the NUL bytes from the stream, even in C
locale.  So instead of postprocessing bison's stderr to neutralize
changes in value of `argv[0]`, use an envvar to actually neutralize
variations of `argv[0]` during tests.

Reported by Dagobert Michelsen.
<https://lists.gnu.org/r/bug-bison/2021-08/msg00025.html>

* src/main.c (main): Change `argv[0]` if BISON_PROGRAM_NAME is
defined.
* tests/bison.in: No longer mess with stderr, just pass
the expected BISON_PROGRAM_NAME value.
src/main.c
tests/bison.in