From 1a9027bbe9f95726b3eda7307159f343f3a521d1 Mon Sep 17 00:00:00 2001 From: Djalal Harouni Date: Wed, 22 Oct 2014 11:22:45 +0100 Subject: [PATCH] test-sync: do a second recv only when SA_RESTART was passed The test was working for all cases, but fix it to only check for the SA_RESTART case. Signed-off-by: Djalal Harouni --- test/test-sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-sync.c b/test/test-sync.c index ec706d6..9533fd7 100644 --- a/test/test-sync.c +++ b/test/test-sync.c @@ -113,7 +113,7 @@ static int interrupt_sync(struct kdbus_conn *conn_src, if (WIFSIGNALED(status)) return TEST_ERR; - if (sa_flags | SA_RESTART) { + if (sa_flags & SA_RESTART) { /* * Our SYNC logic do not support SA_RESTART flag, so we * don't receive the same packet again. We fail with -- 2.34.1