xalloc-die-tests: avoid printing null pointer
authorEric Blake <ebb9@byu.net>
Tue, 17 Nov 2009 04:21:10 +0000 (21:21 -0700)
committerEric Blake <ebb9@byu.net>
Tue, 17 Nov 2009 04:33:36 +0000 (21:33 -0700)
commita77f03bcadfda404d30cec6725e5d946e4babf05
tree43ed23fbe80c9512b18e5d9325749c4be0f965cc
parent8dffeb6f35aff7e201bed55c43ea83b62139803e
xalloc-die-tests: avoid printing null pointer

The test leaked "(null): memory exhausted" to stderr, or crashed
for less capable printf.

* modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
shell script.
* tests/test-xalloc-die.c (program_name): Declare.
* tests/test-xalloc-die.sh (tmpfiles): New file.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
modules/xalloc-die-tests
tests/test-xalloc-die.c
tests/test-xalloc-die.sh [new file with mode: 0755]