]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
string: Add strerror_l on test-strerror-errno
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 18 May 2020 17:36:45 +0000 (14:36 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 7 Jul 2020 17:10:58 +0000 (14:10 -0300)
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>
string/test-strerror-errno.c

index 0c52561015255018950c02c1350d957849a6c2e2..f3b1a98d2234b1b7956e20ec9365ed8d47392cb2 100644 (file)
@@ -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;
 }