test/test-sync: we accept SA_RESTART now
authorDaniel Mack <daniel@zonque.org>
Tue, 28 Oct 2014 12:03:17 +0000 (13:03 +0100)
committerDaniel Mack <daniel@zonque.org>
Tue, 28 Oct 2014 12:03:17 +0000 (13:03 +0100)
Tweak the test case accordingly.

Signed-off-by: Daniel Mack <daniel@zonque.org>
test/test-sync.c

index 8e69cb356dd9246e524453212b587436a1c983cb..4db0bab50ed9007506041e2d34ce17b4e57bc7a2 100644 (file)
@@ -93,19 +93,7 @@ static int interrupt_sync(struct kdbus_conn *conn_src,
                                     KDBUS_MSG_FLAGS_EXPECT_REPLY |
                                     KDBUS_MSG_FLAGS_SYNC_REPLY,
                                     100000000ULL, 0, conn_src->id);
-               ASSERT_EXIT(ret == -EINPROGRESS);
-
-               /* conn_reply is now async, thus we will receive a timeout */
-
-               ret = kdbus_msg_recv_poll(conn_dst, 100, &msg, NULL);
-               ASSERT_EXIT(ret >= 0);
-
-               ASSERT_EXIT(msg->size >= sizeof(struct kdbus_msg) +
-                                        KDBUS_ITEM_HEADER_SIZE);
-               ASSERT_EXIT(msg->items[0].size >= KDBUS_ITEM_HEADER_SIZE);
-               ASSERT_EXIT(msg->items[0].type == KDBUS_ITEM_REPLY_TIMEOUT);
-
-               kdbus_msg_free(msg);
+               ASSERT_EXIT(ret == -ETIMEDOUT);
 
                _exit(EXIT_SUCCESS);
        }