Skip to content

Commit

Permalink
fix err check
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Mar 3, 2024
1 parent a8fec3c commit d7d1f44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ int test_conf(void)
goto badmsg;

err = conf_get_u32(conf, "u32_val", &u32);
TEST_ERR(err);
TEST_EQUALS(42, u32);

err = conf_get_i32(conf, "i32_val", &i32);
TEST_ERR(err);
TEST_EQUALS(-23, i32);

/* Non-existing parameters */
Expand Down

0 comments on commit d7d1f44

Please sign in to comment.