aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-02-23 10:04:50 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-23 16:15:33 +0100
commit5049d01c8d5e77eac9c91367bfc10d1673785c5f (patch)
tree8331b91f2f4c3a84a8c241acfe48622f8d459327
parent323e4db76b70c8b6ea71ea37e5e7688f227eb907 (diff)
downloadseitan-5049d01c8d5e77eac9c91367bfc10d1673785c5f.tar
seitan-5049d01c8d5e77eac9c91367bfc10d1673785c5f.tar.gz
seitan-5049d01c8d5e77eac9c91367bfc10d1673785c5f.tar.bz2
seitan-5049d01c8d5e77eac9c91367bfc10d1673785c5f.tar.lz
seitan-5049d01c8d5e77eac9c91367bfc10d1673785c5f.tar.xz
seitan-5049d01c8d5e77eac9c91367bfc10d1673785c5f.tar.zst
seitan-5049d01c8d5e77eac9c91367bfc10d1673785c5f.zip
test: fix check of a_block
-rw-r--r--tests/unit/test_operations.c6
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