summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-05-07 08:49:04 +0200
committerVolker Lendecke <vl@samba.org>2014-05-08 09:10:12 +0200
commit80365e030d63f2d9708748149fb329467a284039 (patch)
tree50635b9c5916c8b4b03095d4d4bf9d57a4278a95 /source3/torture
parente750e2b1eaf4b98a2870889cc100a150a1b09966 (diff)
downloadsamba-80365e030d63f2d9708748149fb329467a284039.tar.gz
torture3: Fix local-messaging-read1
Now that we defer requests in dispatch_rec, we need 3 rounds to finish the requests Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/test_messaging_read.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/torture/test_messaging_read.c b/source3/torture/test_messaging_read.c
index 387ebfde878..188b0216e71 100644
--- a/source3/torture/test_messaging_read.c
+++ b/source3/torture/test_messaging_read.c
@@ -91,6 +91,7 @@ bool run_messaging_read1(int dummy)
unsigned count2 = 0;
NTSTATUS status;
bool retval = false;
+ int i;
ev = samba_tevent_context_init(talloc_tos());
if (ev == NULL) {
@@ -121,9 +122,11 @@ bool run_messaging_read1(int dummy)
goto fail;
}
- if (tevent_loop_once(ev) != 0) {
- fprintf(stderr, "tevent_loop_once failed\n");
- goto fail;
+ for (i=0; i<3; i++) {
+ if (tevent_loop_once(ev) != 0) {
+ fprintf(stderr, "tevent_loop_once failed\n");
+ goto fail;
+ }
}
printf("%u/%u\n", count1, count2);