Print better error messages.
authordrepper <drepper>
Wed, 28 Jun 2000 04:20:28 +0000 (04:20 +0000)
committerdrepper <drepper>
Wed, 28 Jun 2000 04:20:28 +0000 (04:20 +0000)
localedata/tests-mbwc/tst_wcscoll.c

index d648fa3..929f80d 100644 (file)
@@ -44,9 +44,28 @@ tst_wcscoll (FILE * fp, int debug_flg)
            else
              {
                err_count++;
-               Result (C_FAILURE, S_WCSCOLL, CASE_3,
-                       "the return value should be positive "
-                       "/negative but it's negative/positive.");
+               if (cmp == 1)
+                 {
+                   if (ret == 0)
+                     Result (C_FAILURE, S_WCSCOLL, CASE_3,
+                             "the return value should be positive"
+                             " but it's zero.");
+                   else
+                     Result (C_FAILURE, S_WCSCOLL, CASE_3,
+                             "the return value should be positive"
+                             " but it's negative.");
+                 }
+               else
+                 {
+                   if (ret == 0)
+                     Result (C_FAILURE, S_WCSCOLL, CASE_3,
+                             "the return value should be negative"
+                             " but it's zero.");
+                   else
+                     Result (C_FAILURE, S_WCSCOLL, CASE_3,
+                             "the return value should be negative"
+                             " but it's positive.");
+                 }
              }
          }
       }