Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/mcast Bump timeout for a poll() call slightly, so ...
details: https://anonhg.NetBSD.org/src/rev/ec1a721a34fd
branches: trunk
changeset: 336365:ec1a721a34fd
user: martin <martin%NetBSD.org@localhost>
date: Fri Feb 27 13:15:49 2015 +0000
description:
Bump timeout for a poll() call slightly, so the test has a chance to work
on slow machines.
diffstat:
tests/net/mcast/t_mcast.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4b24f897e0a1 -r ec1a721a34fd tests/net/mcast/t_mcast.c
--- a/tests/net/mcast/t_mcast.c Fri Feb 27 09:16:07 2015 +0000
+++ b/tests/net/mcast/t_mcast.c Fri Feb 27 13:15:49 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mcast.c,v 1.10 2014/10/27 21:28:58 christos Exp $ */
+/* $NetBSD: t_mcast.c,v 1.11 2015/02/27 13:15:49 martin Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
#ifdef __RCSID
-__RCSID("$NetBSD: t_mcast.c,v 1.10 2014/10/27 21:28:58 christos Exp $");
+__RCSID("$NetBSD: t_mcast.c,v 1.11 2015/02/27 13:15:49 martin Exp $");
#else
extern const char *__progname;
#define getprogname() __progname
@@ -275,7 +275,7 @@
pfd.fd = s;
pfd.events = POLLIN;
for (seq = 0; seq < n; seq++) {
- if (poll(&pfd, 1, 1000) == -1)
+ if (poll(&pfd, 1, 10000) == -1)
ERRX(EXIT_FAILURE, "poll (%s)", strerror(errno));
l = conn ? recv(s, &msg, sizeof(msg), 0) :
recvfrom(s, &msg, sizeof(msg), 0, (void *)&ss, &slen);
Home |
Main Index |
Thread Index |
Old Index