public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/vineet/arc-port-latest] string: Add strerror_l on test-strerror-errno
@ 2020-07-09 16:35 Vineet Gupta
  0 siblings, 0 replies; only message in thread
From: Vineet Gupta @ 2020-07-09 16:35 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4f92497488c90fea1ef6796c6d564ff5f8a3add6

commit 4f92497488c90fea1ef6796c6d564ff5f8a3add6
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Mon May 18 14:36:45 2020 -0300

    string: Add strerror_l on test-strerror-errno
    
    Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu,
    and s390x-linux-gnu.
    
    Tested-by: Carlos O'Donell <carlos@redhat.com>
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>

Diff:
---
 string/test-strerror-errno.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/string/test-strerror-errno.c b/string/test-strerror-errno.c
index 0c52561015..f3b1a98d22 100644
--- a/string/test-strerror-errno.c
+++ b/string/test-strerror-errno.c
@@ -55,6 +55,11 @@ do_test (void)
   (void) msg;
   TEST_COMPARE (errno, 0);
 
+  locale_t l = xnewlocale (LC_ALL_MASK, "C", NULL);
+  msg = strerror_l (-3, l);
+  (void) msg;
+  TEST_COMPARE (errno, 0);
+
   return 0;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-09 16:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09 16:35 [glibc/vineet/arc-port-latest] string: Add strerror_l on test-strerror-errno Vineet Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).