summaryrefslogtreecommitdiffstats
path: root/test/build.info
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2022-09-02 14:44:02 +1000
committerPauli <pauli@openssl.org>2022-09-05 16:24:53 +1000
commitf5eac259a03c68c96c77f9b998b1b9c16a8439e7 (patch)
tree99680e0106990591cf11130eb392ecea5de9165f /test/build.info
parent5ccee69b1384fa9377986a6f7730e0d9a372b42b (diff)
list: add a doubly linked list type.
These list can be embedded into structures and structures can be members of multiple lists. Moreover, this is done without dynamic memory allocation. That is, this is legal: typedef struct item_st ITEM; struct item_st { ... OSSL_LIST_MEMBER(new_items, ITEM); OSSL_LIST_MEMBER(failed_items, ITEM); ... }; DEFINE_LIST_OF(new_items, TESTL); DEFINE_LIST_OF(failed_items, TESTL); struct { ... OSSL_LIST(new_items) new; OSSL_LIST(failed_items) failed; ... } *st; ITEM *p; for (p = ossl_list_new_items_head(&st->new); p != NULL; p = ossl_list_new_items_next(p)) /* do something */ Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19115)
Diffstat (limited to 'test/build.info')
-rw-r--r--test/build.info6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/build.info b/test/build.info
index 44dff9d475..0fac691cab 100644
--- a/test/build.info
+++ b/test/build.info
@@ -63,7 +63,7 @@ IF[{- !$disabled{tests} -}]
keymgmt_internal_test hexstr_test provider_status_test defltfips_test \
bio_readbuffer_test user_property_test pkcs7_test upcallstest \
provfetchtest prov_config_test rand_test ca_internals_test \
- bio_tfo_test membio_test
+ bio_tfo_test membio_test list_test
IF[{- !$disabled{'deprecated-3.0'} -}]
PROGRAMS{noinst}=enginetest
@@ -737,6 +737,10 @@ IF[{- !$disabled{tests} -}]
INCLUDE[dhtest]=../include ../apps/include
DEPEND[dhtest]=../libcrypto.a libtestutil.a
+ SOURCE[list_test]=list_test.c
+ INCLUDE[list_test]=../include ../apps/include
+ DEPEND[list_test]=libtestutil.a
+
SOURCE[hmactest]=hmactest.c
INCLUDE[hmactest]=../include ../apps/include
DEPEND[hmactest]=../libcrypto.a libtestutil.a