diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_operations.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |