Skip to content

Commit

Permalink
fixup! test/hash_index: add test for invalid size for testing error h…
Browse files Browse the repository at this point in the history
…andling
  • Loading branch information
ejoerns committed Aug 30, 2024
1 parent b639a19 commit 75fb5b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/hash_index.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,7 @@ static void test_invalid_size(Fixture *fixture, gconstpointer user_data)
// open and calculate hash index
index = r_hash_index_open("test", datafd, NULL, &error);
g_assert_error(error, R_HASH_INDEX_ERROR, R_HASH_INDEX_ERROR_SIZE);
g_assert_nonnull(index);
datafd = -1; /* belongs to index now */
(void)datafd; /* ignore dead store */
g_assert_null(index);
}

int main(int argc, char *argv[])
Expand Down

0 comments on commit 75fb5b3

Please sign in to comment.