aboutsummaryrefslogtreecommitdiff
path: root/localedata/tests-mbwc/tst_mbrtowc.c
diff options
context:
space:
mode:
Diffstat (limited to 'localedata/tests-mbwc/tst_mbrtowc.c')
-rw-r--r--localedata/tests-mbwc/tst_mbrtowc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/localedata/tests-mbwc/tst_mbrtowc.c b/localedata/tests-mbwc/tst_mbrtowc.c
index ffb33ce11e..20507abd99 100644
--- a/localedata/tests-mbwc/tst_mbrtowc.c
+++ b/localedata/tests-mbwc/tst_mbrtowc.c
@@ -26,7 +26,7 @@ tst_mbrtowc (FILE * fp, int debug_flg)
TST_HEAD_LOCALE (mbrtowc, S_MBRTOWC);
TST_DO_REC (mbrtowc)
{
- if (mbrtowc (NULL, "", 0, &t) != 0)
+ if (mbrtowc (NULL, "", 0, &t) != -2)
{
err_count++;
Result (C_FAILURE, S_MBRTOWC, CASE_3,