diff options
author | Eric Blake <ebb9@byu.net> | 2009-11-16 21:21:10 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-11-16 21:33:36 -0700 |
commit | a77f03bcadfda404d30cec6725e5d946e4babf05 (patch) | |
tree | 43ed23fbe80c9512b18e5d9325749c4be0f965cc /modules/xalloc-die-tests | |
parent | 8dffeb6f35aff7e201bed55c43ea83b62139803e (diff) | |
download | gnulib-a77f03bcadfda404d30cec6725e5d946e4babf05.tar.gz |
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>
Diffstat (limited to 'modules/xalloc-die-tests')
-rw-r--r-- | modules/xalloc-die-tests | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/xalloc-die-tests b/modules/xalloc-die-tests index 03ee303cd9..97b25e7741 100644 --- a/modules/xalloc-die-tests +++ b/modules/xalloc-die-tests @@ -1,9 +1,11 @@ Files: tests/test-xalloc-die.c +tests/test-xalloc-die.sh Depends-on: Makefile.am: -TESTS += test-xalloc-die +TESTS += test-xalloc-die.sh +TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' XFAIL_TESTS += test-xalloc-die check_PROGRAMS += test-xalloc-die |