summaryrefslogtreecommitdiff
path: root/tests/test-nl_langinfo.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-10-22 01:59:15 +0200
committerBruno Haible <bruno@clisp.org>2010-10-22 01:59:15 +0200
commita0598ff28d2256e53968f760492c55879055ea94 (patch)
treee2c9f502d5e999a4ae2ae9288e3eca27b235fe63 /tests/test-nl_langinfo.c
parentb86f488e783121f54dbd44e17741fa3b29e9be9b (diff)
downloadgnulib-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.c6
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);