Skip to content

Commit

Permalink
tests: kvlist: fix conditionals
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Feb 25, 2024
1 parent 6cb916f commit b55b66b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/kvlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ static void insert_reference()
return;
}

if (!TEST_CHECK(var->data.as_reference == &expect_type) == 0) {
if (!TEST_CHECK(var->data.as_reference == &expect_type)) {
TEST_MSG("variant value error.got=%p expect=%p", var->data.as_reference, &expect_type);
cfl_kvlist_destroy(list);
return;
Expand Down Expand Up @@ -733,7 +733,7 @@ static void insert_reference_s()
return;
}

if (!TEST_CHECK(var->data.as_reference == &expect_type) == 0) {
if (!TEST_CHECK(var->data.as_reference == &expect_type)) {
TEST_MSG("variant value error.got=%p expect=%p", var->data.as_reference, &expect_type);
cfl_kvlist_destroy(list);
return;
Expand Down

0 comments on commit b55b66b

Please sign in to comment.