This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.21-265-g7378b1f


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  7378b1f8f8ef25017d36af60e2d6a42939d74526 (commit)
      from  5556d30caee170384553d2ae3247ec77a66b9ae8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=7378b1f8f8ef25017d36af60e2d6a42939d74526

commit 7378b1f8f8ef25017d36af60e2d6a42939d74526
Author: Stefan Liebler <stli@linux.vnet.ibm.com>
Date:   Fri Apr 10 15:42:00 2015 -0700

    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.

diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index 61857f5..97e0329 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,3 +1,10 @@
+2015-04-10  Stefan Liebler  <stli@linux.vnet.ibm.com>
+
+	* 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.
+
 2015-03-04  Roland McGrath  <roland@hack.frob.com>
 
 	* bug-setlocale1.c (do_test): Remove argument handling and
diff --git a/localedata/tests-mbwc/dat_mbrlen.c b/localedata/tests-mbwc/dat_mbrlen.c
index 61e8423..1df485e 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,		     },
 	  }
diff --git a/localedata/tests-mbwc/tst_mbrtowc.c b/localedata/tests-mbwc/tst_mbrtowc.c
index ffb33ce..20507ab 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,

-----------------------------------------------------------------------

Summary of changes:
 localedata/ChangeLog                |    7 +++++++
 localedata/tests-mbwc/dat_mbrlen.c  |   10 +++++-----
 localedata/tests-mbwc/tst_mbrtowc.c |    2 +-
 3 files changed, 13 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]