Mercurial > hg > octave-nkf > gnulib-hg
changeset 12369:43c3308eae10
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}.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Fri, 27 Nov 2009 10:19:32 +0100 |
parents | 7beaf2dc28a9 |
children | 06fd7404faaf |
files | ChangeLog modules/xalloc-die-tests tests/test-xalloc-die.c tests/test-xalloc-die.sh |
diffstat | 4 files changed, 19 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2009-11-27 Jim Meyering <meyering@redhat.com> + + 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}. + 2009-11-26 Richard Jones <rjones@redhat.com> w32sock: leave win32 error in place.
--- a/modules/xalloc-die-tests +++ b/modules/xalloc-die-tests @@ -3,6 +3,7 @@ tests/test-xalloc-die.sh Depends-on: +progname Makefile.am: TESTS += test-xalloc-die.sh