Re: Discrepancy in regards to program_name output

2021-06-09 Thread Bruno Haible
Sören Tempel wrote: > > tl;dr If argv[0] is a full path (e.g. because of qemu-user usage), > > many tests will fail because --help uses argv[0] while error messages > > use basename(argv[0]). Yes, that's the cause. Good analysis. > > Not sure how to resolve this, if getprogname is expected to ret

Re: Discrepancy in regards to program_name output

2021-06-09 Thread Eric Blake
On Wed, Jun 09, 2021 at 06:46:45PM +0200, Sören Tempel wrote: > Hello, > > I was debugging m4 test failures in an Alpine Linux Edge RISC-V RV64 > chroot emulated using qemu-user. The test failures looked as follows: > > checks$ ./check-them -I ../examples/ 021.macro_argu > -/usr/bin/m