test-xalloc-die: avoid spurious failure due to libtool argv difference
authorJim Meyering <meyering@redhat.com>
Fri, 27 Nov 2009 09:19:32 +0000 (10:19 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 27 Nov 2009 09:19:32 +0000 (10:19 +0100)
commitfed81b331283a3bf7a8608a5c6282ee8594b229f
tree314e6b572b513ed4de6e2f50e8c4e4db79fad8e8
parentdfd793fab03429ee3510958eee1ed33de282fbcc
test-xalloc-die: avoid spurious failure due to libtool argv difference

In a libtool-enabled project, this test would fail due to a difference
in the emitted program name, e.g.,
-test-xalloc-die: memory exhausted
+/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
Use program to avoid that.
* modules/xalloc-die-tests (Depends-on): Add progname.
* tests/test-xalloc-die.c: Include progname.h".
(program_name): Remove decl.
(main): Call set_program_name.
* tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
ChangeLog
modules/xalloc-die-tests
tests/test-xalloc-die.c
tests/test-xalloc-die.sh