diff options
Diffstat (limited to 'localedata/tests-mbwc/tst_wcscoll.c')
-rw-r--r-- | localedata/tests-mbwc/tst_wcscoll.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/localedata/tests-mbwc/tst_wcscoll.c b/localedata/tests-mbwc/tst_wcscoll.c index d648fa3c60..929f80d800 100644 --- a/localedata/tests-mbwc/tst_wcscoll.c +++ b/localedata/tests-mbwc/tst_wcscoll.c @@ -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."); + } } } } |