mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
* string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
Just test that strerror returns non-null for a few errno codes.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2001-08-24 Roland McGrath <roland@frob.com>
|
||||||
|
|
||||||
|
* string/tester.c (test_strerror): Don't use _sys_errlist/_sys_nerr.
|
||||||
|
Just test that strerror returns non-null for a few errno codes.
|
||||||
|
|
||||||
2001-08-23 Roland McGrath <roland@frob.com>
|
2001-08-23 Roland McGrath <roland@frob.com>
|
||||||
|
|
||||||
* hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
|
* hurd/Versions (libc: GLIBC_2.2.5): New set; add _hurd_raise_signal,
|
||||||
|
@ -1272,11 +1272,10 @@ test_bcmp (void)
|
|||||||
static void
|
static void
|
||||||
test_strerror (void)
|
test_strerror (void)
|
||||||
{
|
{
|
||||||
int f;
|
|
||||||
it = "strerror";
|
it = "strerror";
|
||||||
f = __open("/", O_WRONLY); /* Should always fail. */
|
check(strerror(EDOM) != 0, 1);
|
||||||
check(f < 0 && errno > 0 && errno < _sys_nerr, 1);
|
check(strerror(ERANGE) != 0, 2);
|
||||||
equal(strerror(errno), _sys_errlist[errno], 2);
|
check(strerror(ENOENT) != 0, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Reference in New Issue
Block a user