git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f476e7a
)
r8412: cope with some lost messages in the ping test (netbsd gets this)
author
Andrew Tridgell
<tridge@samba.org>
Wed, 13 Jul 2005 05:31:21 +0000
(
05:31
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:22:59 +0000
(13:22 -0500)
source/torture/local/messaging.c
patch
|
blob
|
history
diff --git
a/source/torture/local/messaging.c
b/source/torture/local/messaging.c
index 85a6ff7e82735bc9c191f3b3f173e2aa914ffe35..22b05a12b5aae1e1aedb911bd2188cfb0d34489d 100644
(file)
--- a/
source/torture/local/messaging.c
+++ b/
source/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);
}