From: Daniel Mack Date: Tue, 28 Oct 2014 12:03:17 +0000 (+0100) Subject: test/test-sync: we accept SA_RESTART now X-Git-Tag: upstream/0.20141102.012929utc~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=306d8a70f4024f1c9155c07e0d4ab178bae1b69a;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git test/test-sync: we accept SA_RESTART now Tweak the test case accordingly. Signed-off-by: Daniel Mack --- 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); }