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>
This commit is contained in:
Adhemerval Zanella 2020-05-18 14:36:45 -03:00
parent 653200ef42
commit 4f92497488

View 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;
}