From 323e4db76b70c8b6ea71ea37e5e7688f227eb907 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Wed, 22 Feb 2023 17:14:45 +0100 Subject: tests: adjust do_operations signature Signed-off-by: Alice Frosi --- tests/unit/test_operations.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/unit/test_operations.c b/tests/unit/test_operations.c index 6c5952f..c7ba0e1 100644 --- a/tests/unit/test_operations.c +++ b/tests/unit/test_operations.c @@ -212,7 +212,7 @@ START_TEST(test_act_continue) struct op operations[] = { { .type = OP_CONT }, }; - int ret = do_operations(NULL, operations, + int ret = do_operations(NULL, operations, &req, sizeof(operations) / sizeof(operations[0]), -1, notifyfd, req.id); ck_assert_msg(ret == 0, strerror(errno)); @@ -228,7 +228,7 @@ START_TEST(test_act_block) .block = { .error = -1 }, }, }; - int ret = do_operations(NULL, operations, + int ret = do_operations(NULL, operations, &req, sizeof(operations) / sizeof(operations[0]), -1, notifyfd, req.id); ck_assert_msg(ret == 0, strerror(errno)); @@ -244,7 +244,7 @@ START_TEST(test_act_return) .ret = { .type = IMMEDIATE, .value = 1 }, }, }; - int ret = do_operations(NULL, operations, + int ret = do_operations(NULL, operations, &req, sizeof(operations) / sizeof(operations[0]), -1, notifyfd, req.id); ck_assert_msg(ret == 0, strerror(errno)); @@ -264,7 +264,7 @@ START_TEST(test_act_return_ref) }; memcpy((uint16_t *)&tmp_data + offset, &v, sizeof(v)); - int ret = do_operations(&tmp_data, operations, + int ret = do_operations(&tmp_data, operations, &req, sizeof(operations) / sizeof(operations[0]), -1, notifyfd, req.id); ck_assert_msg(ret == 0, strerror(errno)); @@ -281,7 +281,7 @@ START_TEST(test_act_call) }, { .type = OP_CONT }, }; - int ret = do_operations(NULL, operations, + int ret = do_operations(NULL, operations, &req, sizeof(operations) / sizeof(operations[0]), -1, notifyfd, req.id); ck_assert_msg(ret == 0, strerror(errno)); @@ -300,7 +300,7 @@ START_TEST(test_act_call_ret) }, { .type = OP_CONT }, }; - int ret = do_operations(&tmp_data, operations, + int ret = do_operations(&tmp_data, operations, &req, sizeof(operations) / sizeof(operations[0]), -1, notifyfd, req.id); long r; @@ -337,7 +337,7 @@ static void test_inject(struct op operations[], int n, bool reference) operations[0].inj.oldfd.type = IMMEDIATE; } - ret = do_operations(&tmp_data, operations, n, -1, notifyfd, req.id); + ret = do_operations(&tmp_data, operations, &req,n, -1, notifyfd, req.id); ck_assert_msg(ret == 0, strerror(errno)); check_target_fd(pid, test_fd); } -- cgit v1.2.3