Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
milyin committed Aug 20, 2024
1 parent e071216 commit eb8683e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/z_api_double_drop_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
void test_keyexpr(void) {
z_owned_keyexpr_t keyexpr;
z_keyexpr_from_str(&keyexpr, URL);
assert(_z_check(keyexpr));
assert(z_internal_check(keyexpr));
z_drop(z_move(keyexpr));
assert(!_z_check(keyexpr));
assert(!z_internal_check(keyexpr));
z_drop(z_move(keyexpr));
assert(!_z_check(keyexpr));
assert(!z_internal_check(keyexpr));
}

void test_config(void) {
z_owned_config_t config;
z_config_default(&config);
assert(_z_check(config));
assert(z_internal_check(config));
z_drop(z_move(config));
assert(!_z_check(config));
assert(!z_internal_check(config));
z_drop(z_move(config));
assert(!_z_check(config));
assert(!z_internal_check(config));
}

int main(void) {
Expand Down

0 comments on commit eb8683e

Please sign in to comment.