mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
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:
parent
653200ef42
commit
4f92497488
@ -55,6 +55,11 @@ do_test (void)
|
|||||||
(void) msg;
|
(void) msg;
|
||||||
TEST_COMPARE (errno, 0);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user