X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Ftss_create.c;h=7faa4f9f72637a4ffa99cf539c6a1459989d34af;hb=29387e76cd5cd340fe7d811dc9830931d3d0ec9b;hp=4b8ce168074f5196fc2a32c7e9c42c61813b8737;hpb=b41576197133c1211d6ec353faf93f505f573b8a;p=pdclib diff --git a/opt/nothread/tss_create.c b/opt/nothread/tss_create.c index 4b8ce16..7faa4f9 100644 --- a/opt/nothread/tss_create.c +++ b/opt/nothread/tss_create.c @@ -1,3 +1,4 @@ +#ifndef REGTEST #include int tss_create(tss_t *key, tss_dtor_t dtor) @@ -5,4 +6,16 @@ int tss_create(tss_t *key, tss_dtor_t dtor) key->self = key; key->value = NULL; return thrd_success; -} \ No newline at end of file +} +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +/* Tested in tss_get.c */ +int main( void ) +{ + return TEST_RESULTS; +} + +#endif