Mercurial > hg > octave-kai > gnulib-hg
changeset 13819:b7fdddf92299
nl_langinfo test: Avoid test failure on NetBSD 5.
* tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
Reported by Eric Blake.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 22 Oct 2010 01:59:15 +0200 |
parents | 7d63d145c370 |
children | f44f7159cdc4 |
files | ChangeLog tests/test-nl_langinfo.c |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-10-21 Bruno Haible <bruno@clisp.org> + + nl_langinfo test: Avoid test failure on NetBSD 5. + * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR). + Reported by Eric Blake. + 2010-10-21 Eric Blake <eblake@redhat.com> c-stack: work around libsigsegv 2.8 bug
--- a/tests/test-nl_langinfo.c +++ b/tests/test-nl_langinfo.c @@ -112,7 +112,11 @@ /* nl_langinfo items of the LC_MONETARY category */ { const char *currency = nl_langinfo (CRNCYSTR); - ASSERT (strlen (currency) >= (pass > 0 ? 1 : 0)); + ASSERT (strlen (currency) >= 0); +#if !defined __NetBSD__ + if (pass > 0) + ASSERT (strlen (currency) >= 1); +#endif } /* nl_langinfo items of the LC_MESSAGES category */ ASSERT (strlen (nl_langinfo (YESEXPR)) > 0);