summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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 387ebfde87..188b0216e7 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);