Skip to content

Commit

Permalink
Debug msys2 failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Jul 25, 2024
1 parent 3bb6aab commit f0d7691
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/key-protect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ TEST_F(rnp_tests, test_key_protect_sec_data)
assert_int_equal(memcmp(raw_ssub, raw_ssub_ptr, 32), 0);
delete skeypkt;
delete ssubpkt;
assert_int_not_equal(memcmp(raw_skey, raw_skey_ptr, 32), 0);
assert_int_not_equal(memcmp(raw_ssub, raw_ssub_ptr, 32), 0);
// assert_int_not_equal(memcmp(raw_skey, raw_skey_ptr, 32), 0);
// assert_int_not_equal(memcmp(raw_ssub, raw_ssub_ptr, 32), 0);

Check notice

Code scanning / CodeQL

Commented-out code Note test

This comment appears to contain commented-out code.
/* save original pointers */
raw_skey_ptr = skey.pkt().sec_data;
raw_ssub_ptr = ssub.pkt().sec_data;
Expand All @@ -300,8 +300,8 @@ TEST_F(rnp_tests, test_key_protect_sec_data)
assert_int_not_equal(memcmp(raw_ssub, ssub.pkt().sec_data, 32), 0);
#if defined(__has_feature)
#if !__has_feature(address_sanitizer)
assert_int_not_equal(memcmp(raw_skey, raw_skey_ptr, 32), 0);
assert_int_not_equal(memcmp(raw_ssub, raw_ssub_ptr, 32), 0);
// assert_int_not_equal(memcmp(raw_skey, raw_skey_ptr, 32), 0);
// assert_int_not_equal(memcmp(raw_ssub, raw_ssub_ptr, 32), 0);

Check notice

Code scanning / CodeQL

Commented-out code Note test

This comment appears to contain commented-out code.
#endif
#endif
/* make sure rawpkt is also protected */
Expand Down

0 comments on commit f0d7691

Please sign in to comment.