diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-13 05:31:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:22:59 -0500 |
commit | 50ea5cb41904a22c8dde832b0a1b7173bcbf7b8d (patch) | |
tree | f094c7c22523ff6caf30e5df1c2b6be60127fcde /source4/torture/local | |
parent | a3b0bb89b433925110a00b8e87853131856e5ee9 (diff) | |
download | samba-50ea5cb41904a22c8dde832b0a1b7173bcbf7b8d.tar.gz samba-50ea5cb41904a22c8dde832b0a1b7173bcbf7b8d.tar.bz2 samba-50ea5cb41904a22c8dde832b0a1b7173bcbf7b8d.zip |
r8412: cope with some lost messages in the ping test (netbsd gets this)
(This used to be commit fcf60823c6171ec109195cb8d61de5b0e02fd005)
Diffstat (limited to 'source4/torture/local')
-rw-r--r-- | source4/torture/local/messaging.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |