X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Ftss_create.c;h=e7ad53a835231716ee19d55fb0b9ba5bef9b5bf0;hb=00da512946a32e38f815ca3b2a3b6111e4678fe1;hp=4b8ce168074f5196fc2a32c7e9c42c61813b8737;hpb=97dd2fddbdb56005b16a1b0aa19ed15cd77269fc;p=pdclib.old diff --git a/opt/nothread/tss_create.c b/opt/nothread/tss_create.c index 4b8ce16..e7ad53a 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 \ No newline at end of file