aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-02-22 17:14:45 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-23 16:15:33 +0100
commit323e4db76b70c8b6ea71ea37e5e7688f227eb907 (patch)
tree5f32024f5390332d63232c941b058dae417d5743
parent977ffec509a95efeca2b7c508912d5d1df7cd677 (diff)
downloadseitan-323e4db76b70c8b6ea71ea37e5e7688f227eb907.tar
seitan-323e4db76b70c8b6ea71ea37e5e7688f227eb907.tar.gz
seitan-323e4db76b70c8b6ea71ea37e5e7688f227eb907.tar.bz2
seitan-323e4db76b70c8b6ea71ea37e5e7688f227eb907.tar.lz
seitan-323e4db76b70c8b6ea71ea37e5e7688f227eb907.tar.xz
seitan-323e4db76b70c8b6ea71ea37e5e7688f227eb907.tar.zst
seitan-323e4db76b70c8b6ea71ea37e5e7688f227eb907.zip
tests: adjust do_operations signature
Signed-off-by: Alice Frosi <afrosi@redhat.com>
-rw-r--r--tests/unit/test_operations.c14
1 files 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);
}