From 306d8a70f4024f1c9155c07e0d4ab178bae1b69a Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Tue, 28 Oct 2014 13:03:17 +0100 Subject: [PATCH] test/test-sync: we accept SA_RESTART now Tweak the test case accordingly. Signed-off-by: Daniel Mack --- test/test-sync.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/test/test-sync.c b/test/test-sync.c index 8e69cb3..4db0bab 100644 --- a/test/test-sync.c +++ b/test/test-sync.c @@ -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); } -- 2.34.1