From 5049d01c8d5e77eac9c91367bfc10d1673785c5f Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Thu, 23 Feb 2023 10:04:50 +0100 Subject: test: fix check of a_block --- tests/unit/test_operations.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_operations.c b/tests/unit/test_operations.c index c7ba0e1..9dd78eb 100644 --- a/tests/unit/test_operations.c +++ b/tests/unit/test_operations.c @@ -232,7 +232,11 @@ START_TEST(test_act_block) sizeof(operations) / sizeof(operations[0]), -1, notifyfd, req.id); ck_assert_msg(ret == 0, strerror(errno)); - check_target_result(-1, 0, false); + /* + * The tests use getpid that returns the error with ret and it is always + * successful + */ + check_target_result(operations[0].block.error, 1, false); } END_TEST -- cgit v1.2.3