From ea27382ef40650f1a8310bce02fe60c0a94fa121 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 22 Apr 2014 16:07:18 -0700 Subject: [PATCH] s3: torture - Fix racy assumption in original messaging test. Signed-off-by: Jeremy Allison Reviewed-by: "Stefan (metze) Metzmacher" Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Apr 24 00:50:55 CEST 2014 on sn-devel-104 --- source3/torture/msgtest.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/source3/torture/msgtest.c b/source3/torture/msgtest.c index 32f4b04cf0c..07a7b6dbe86 100644 --- a/source3/torture/msgtest.c +++ b/source3/torture/msgtest.c @@ -85,7 +85,7 @@ static void pong_message(struct messaging_context *msg_ctx, } } - /* Now test that the duplicate filtering code works. */ + /* Ensure all messages get through to ourselves. */ pong_count = 0; strlcpy(buf, "1234567890", sizeof(buf)); @@ -97,15 +97,25 @@ static void pong_message(struct messaging_context *msg_ctx, MSG_PING,(uint8 *)buf, 11); } - for (i=0;i