diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-03-16 11:38:56 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-03-16 11:48:26 +0100 |
commit | db354c28812170d74f745ef0797e6dfbfaf27a3b (patch) | |
tree | 12fbce2f53e628a4c1f2df5005d64fae21953f67 /tests/mini-handshake-timeout.c | |
parent | 4d4eb881fdde41d9052ac86c9c2a6f8d7bf759c8 (diff) | |
download | gnutls-db354c28812170d74f745ef0797e6dfbfaf27a3b.tar.gz |
tests: use nanosleep for sleeping
Diffstat (limited to 'tests/mini-handshake-timeout.c')
-rw-r--r-- | tests/mini-handshake-timeout.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mini-handshake-timeout.c b/tests/mini-handshake-timeout.c index 80e2b4e097..6a3de904cb 100644 --- a/tests/mini-handshake-timeout.c +++ b/tests/mini-handshake-timeout.c @@ -159,9 +159,9 @@ static void server(int fd, int wait) gnutls_transport_set_int(session, fd); - if (wait) - sleep(25); - else { + if (wait) { + sec_sleep(25); + } else { do { ret = gnutls_handshake(session); } |