test-sync: use ASSERT_EXIT() in child process
authorDjalal Harouni <tixxdz@opendz.org>
Thu, 25 Dec 2014 15:05:00 +0000 (16:05 +0100)
committerDjalal Harouni <tixxdz@opendz.org>
Thu, 25 Dec 2014 15:18:24 +0000 (16:18 +0100)
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/test-sync.c

index 79120e4090e1b00439d4839287e22ea2490a8772..fd7b006f31e65b4cd4a7176d078ba1f4aa340d88 100644 (file)
@@ -151,8 +151,8 @@ static int close_epipe_sync(const char *bus)
                kdbus_conn_free(conn_dst);
 
                ret = kdbus_msg_recv_poll(conn_src, 100, &msg, NULL);
-               ASSERT_RETURN(ret == 0 && msg->cookie == cookie);
-               ASSERT_RETURN(msg->src_id == dst_id);
+               ASSERT_EXIT(ret == 0 && msg->cookie == cookie);
+               ASSERT_EXIT(msg->src_id == dst_id);
 
                cookie++;
                ret = kdbus_msg_send_sync(conn_src, NULL, cookie,