diff options
author | Bruno Haible <bruno@clisp.org> | 2010-10-22 01:59:15 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-10-22 01:59:15 +0200 |
commit | a0598ff28d2256e53968f760492c55879055ea94 (patch) | |
tree | e2c9f502d5e999a4ae2ae9288e3eca27b235fe63 /tests/test-nl_langinfo.c | |
parent | b86f488e783121f54dbd44e17741fa3b29e9be9b (diff) | |
download | gnulib-a0598ff28d2256e53968f760492c55879055ea94.tar.gz |
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.
Diffstat (limited to 'tests/test-nl_langinfo.c')
-rw-r--r-- | tests/test-nl_langinfo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-nl_langinfo.c b/tests/test-nl_langinfo.c index 27b1ed668c..41f16d39be 100644 --- a/tests/test-nl_langinfo.c +++ b/tests/test-nl_langinfo.c @@ -112,7 +112,11 @@ main (int argc, char *argv[]) /* 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); |