Mercurial > hg > octave-lyh > gnulib-hg
changeset 15648:580fe6482897
accept tests: Fix last commit.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 18 Sep 2011 11:13:21 +0200 |
parents | 19d798f9d14f |
children | df1b2907db75 |
files | tests/test-accept.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-accept.c +++ b/tests/test-accept.c @@ -35,7 +35,7 @@ socklen_t addrlen = sizeof (addr); errno = 0; - ASSERT (accept (-1, (struct sockaddr *) &addr, &addrlen)); + ASSERT (accept (-1, (struct sockaddr *) &addr, &addrlen) == -1); ASSERT (errno == EBADF); } { @@ -43,7 +43,7 @@ socklen_t addrlen = sizeof (addr); errno = 0; - ASSERT (accept (99, (struct sockaddr *) &addr, &addrlen)); + ASSERT (accept (99, (struct sockaddr *) &addr, &addrlen) == -1); ASSERT (errno == EBADF); }