From 50ea5cb41904a22c8dde832b0a1b7173bcbf7b8d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Jul 2005 05:31:21 +0000 Subject: r8412: cope with some lost messages in the ping test (netbsd gets this) (This used to be commit fcf60823c6171ec109195cb8d61de5b0e02fd005) --- source4/torture/local/messaging.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/torture/local/messaging.c') diff --git a/source4/torture/local/messaging.c b/source4/torture/local/messaging.c index 85a6ff7e82..22b05a12b5 100644 --- a/source4/torture/local/messaging.c +++ b/source4/torture/local/messaging.c @@ -101,14 +101,16 @@ static BOOL test_ping_speed(TALLOC_CTX *mem_ctx) if (!NT_STATUS_IS_OK(status1)) { printf("msg1 failed - %s\n", nt_errstr(status1)); + } else { + ping_count++; } if (!NT_STATUS_IS_OK(status2)) { printf("msg2 failed - %s\n", nt_errstr(status2)); + } else { + ping_count++; } - ping_count += 2; - while (ping_count > pong_count + 20) { event_loop_once(ev); } -- cgit