about summary refs log tree commit diff
path: root/localedata/tests-mbwc/dat_mbrlen.c
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.vnet.ibm.com>2015-04-10 15:42:00 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-04-10 15:45:53 -0700
commit7378b1f8f8ef25017d36af60e2d6a42939d74526 (patch)
tree57f2ab2cac715e16df34110828619c9e41cfb6d1 /localedata/tests-mbwc/dat_mbrlen.c
parent5556d30caee170384553d2ae3247ec77a66b9ae8 (diff)
downloadglibc-7378b1f8f8ef25017d36af60e2d6a42939d74526.tar.gz
glibc-7378b1f8f8ef25017d36af60e2d6a42939d74526.tar.xz
glibc-7378b1f8f8ef25017d36af60e2d6a42939d74526.zip
Update tst_mbrlen/tst_mbrtowc for mblen change
commit 9781a370023952383028e07399fd196a889bb2be changed the expected
results for mbrlen in case of passing n=0 to -2. The initialization of
tst_mbrlen_loc and tst_mbrtowc should be updated accordingly.

	* tests-mbwc/dat_mbrlen.c (tst_mbrlen_loc): Change expected
	result to -2 in case of n == 0.
	* tests-mbwc/tst_mbrtowc.c (tst_mbrtowc): Check result against
	-2 instead of 0.
Diffstat (limited to 'localedata/tests-mbwc/dat_mbrlen.c')
-rw-r--r--localedata/tests-mbwc/dat_mbrlen.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/localedata/tests-mbwc/dat_mbrlen.c b/localedata/tests-mbwc/dat_mbrlen.c
index 61e8423115..1df485e9c9 100644
--- a/localedata/tests-mbwc/dat_mbrlen.c
+++ b/localedata/tests-mbwc/dat_mbrlen.c
@@ -30,7 +30,7 @@ TST_MBRLEN tst_mbrlen_loc [] = {
 	},
 	{
 	  {
-	    { 0,		1,  0,		     },
+	    { 0,		1,  -2,		     },
 	    { 0,		1,  0,		     },
 	    { 0,		1,  1,		     },
 	  }
@@ -46,7 +46,7 @@ TST_MBRLEN tst_mbrlen_loc [] = {
 	},
 	{
 	  {
-	    { 0,		1,  0,		     },
+	    { 0,		1,  -2,		     },
 	    { 0,		1,  1,		     },
 	    { 0,		1,  1,		     },
 	  }
@@ -68,7 +68,7 @@ TST_MBRLEN tst_mbrlen_loc [] = {
 	},
 	{
 	  {
-	    { 0,		1,  0,		     },
+	    { 0,		1,  -2,		     },
 	    { 0,		1,  1,		     },
 	    { 0,		1,  1,		     },
 	  }
@@ -84,7 +84,7 @@ TST_MBRLEN tst_mbrlen_loc [] = {
 	},
 	{
 	  {
-	    { 0,		1,  0,		     },
+	    { 0,		1,  -2,		     },
 	    { EILSEQ,	1, -1,		     },
 	    { EILSEQ,	1, -1,		     },
 	  }
@@ -140,7 +140,7 @@ TST_MBRLEN tst_mbrlen_loc [] = {
 	},
 	{
 	  {
-	    { 0,		1,  0,		     },
+	    { 0,		1,  -2,		     },
 	    { 0,		1, -2,		     },
 	    { EILSEQ,	1, -1,		     },
 	  }