diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-08-20 09:24:19 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-08-20 16:44:50 +0200 |
commit | b727cc9dcc7e3f9e67b1da825938717a2471eb8b (patch) | |
tree | 5d839cf35e74d2bb4ad632b77d95045f9b188172 /tests/mini-record.c | |
parent | e800713cf7c207ff4b0ecac4e06dfa46bce8027b (diff) | |
download | gnutls-b727cc9dcc7e3f9e67b1da825938717a2471eb8b.tar.gz |
tests: make mini-record more friendly for OSes with limited bufferstmp-fix-sed-portability
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'tests/mini-record.c')
-rw-r--r-- | tests/mini-record.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mini-record.c b/tests/mini-record.c index 464a7560cc..56da1d845f 100644 --- a/tests/mini-record.c +++ b/tests/mini-record.c @@ -282,6 +282,7 @@ static void server(int fd, const char *prio) mtu = gnutls_dtls_get_mtu(session); do { + usleep(10000); /* some systems like FreeBSD have their buffers full during this send */ do { ret = gnutls_record_send(session, buffer, @@ -319,7 +320,7 @@ static void server(int fd, const char *prio) static void start(const char *name, const char *prio) { int fd[2]; - int ret, status; + int ret, status = 0; ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, fd); if (ret < 0) { |