Skip to content

Commit

Permalink
Ensure rnp_signature_get_features fails in expected scenarios.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaie authored and ni4 committed Feb 26, 2024
1 parent d5b2979 commit 4a90aa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/ffi-key-sig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,8 @@ TEST_F(rnp_tests, test_ffi_sig_validity)
assert_rnp_success(rnp_signature_get_expiration(sig, &expires));
assert_int_equal(expires, 86400);
uint32_t features = 0;
assert_rnp_failure(rnp_signature_get_features(NULL, &features));
assert_rnp_failure(rnp_signature_get_features(sig, NULL));
assert_rnp_success(rnp_signature_get_features(sig, &features));
assert_int_equal(features, 0);
rnp_signature_handle_destroy(sig);
Expand Down

0 comments on commit 4a90aa2

Please sign in to comment.