test-sync: do a second recv only when SA_RESTART was passed
authorDjalal Harouni <tixxdz@opendz.org>
Wed, 22 Oct 2014 10:22:45 +0000 (11:22 +0100)
committerDjalal Harouni <tixxdz@opendz.org>
Wed, 22 Oct 2014 10:22:45 +0000 (11:22 +0100)
The test was working for all cases, but fix it to only check for the
SA_RESTART case.

Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/test-sync.c

index ec706d676e0a20d375826adfd9ec997115e0026c..9533fd7e1e42b5982ec153dc3487eae73095fd12 100644 (file)
@@ -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