tests: avoid test failure on Solaris 10 due to lack of PATH export
[pspp] / tests / test-nl_langinfo.c
index 27b1ed668ca97f4931ca1f68b02fc7701ad699e0..41f16d39be3e6e649976e04a0a56a811a49ad827 100644 (file)
@@ -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);