From: Adhemerval Zanella Date: Mon, 18 May 2020 17:36:45 +0000 (-0300) Subject: string: Add strerror_l on test-strerror-errno X-Git-Tag: glibc-2.32~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f92497488c90fea1ef6796c6d564ff5f8a3add6;p=thirdparty%2Fglibc.git 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 Reviewed-by: Carlos O'Donell --- diff --git a/string/test-strerror-errno.c b/string/test-strerror-errno.c index 0c525610152..f3b1a98d223 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; }