diff options
author | Hugo Landau <hlandau@openssl.org> | 2022-03-22 11:52:27 +0000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-21 10:49:52 +0100 |
commit | 433471084e4955bbab01d1803a3cf4320031a5c3 (patch) | |
tree | 1fee767badf428b0315c24e26d786485c7c7ec3a /test | |
parent | 2adb7908ef89a01955d9d27365aacff19edf4d57 (diff) | |
download | openssl-433471084e4955bbab01d1803a3cf4320031a5c3.zip openssl-433471084e4955bbab01d1803a3cf4320031a5c3.tar.gz openssl-433471084e4955bbab01d1803a3cf4320031a5c3.tar.bz2 |
Add deprecation macro for 3.1 and deprecate OPENSSL_LH_stats
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17937)
(cherry picked from commit 5317b6ee1fc3db20de5976fbb46cc49a45c0768a)
Diffstat (limited to 'test')
-rw-r--r-- | test/lhash_test.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/test/lhash_test.c b/test/lhash_test.c index 537ae18..38dbff0 100644 --- a/test/lhash_test.c +++ b/test/lhash_test.c @@ -27,7 +27,7 @@ #pragma clang diagnostic ignored "-Wunused-function" #endif -DEFINE_LHASH_OF(int); +DEFINE_LHASH_OF_EX(int); static int int_tests[] = { 65537, 13, 1, 3, -5, 6, 7, 4, -10, -12, -14, 22, 9, -17, 16, 17, -23, 35, 37, 173, 11 }; @@ -210,11 +210,6 @@ static int test_stress(void) if (!TEST_int_eq(lh_int_num_items(h), n)) goto end; - TEST_info("hash full statistics:"); - OPENSSL_LH_stats_bio((OPENSSL_LHASH *)h, bio_err); - TEST_note("hash full node usage:"); - OPENSSL_LH_node_usage_stats_bio((OPENSSL_LHASH *)h, bio_err); - /* delete in a different order */ for (i = 0; i < n; i++) { const int j = (7 * i + 4) % n * 3 + 1; @@ -230,11 +225,6 @@ static int test_stress(void) OPENSSL_free(p); } - TEST_info("hash empty statistics:"); - OPENSSL_LH_stats_bio((OPENSSL_LHASH *)h, bio_err); - TEST_note("hash empty node usage:"); - OPENSSL_LH_node_usage_stats_bio((OPENSSL_LHASH *)h, bio_err); - testresult = 1; end: lh_int_free(h); |