X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=opt%2Fnothread%2Ftss_set.c;h=e66ea33894b32613a7f042378a0368da0c92b70a;hp=feea85d345b80857af5e2eb12444d58ac00f5404;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=b41576197133c1211d6ec353faf93f505f573b8a diff --git a/opt/nothread/tss_set.c b/opt/nothread/tss_set.c index feea85d..e66ea33 100644 --- a/opt/nothread/tss_set.c +++ b/opt/nothread/tss_set.c @@ -1,7 +1,20 @@ -#include - -int tss_set(tss_t key, void *val) -{ - key.self->value = val; - return thrd_success; -} \ No newline at end of file +#ifndef REGTEST +#include + +int tss_set(tss_t key, void *val) +{ + key.self->value = val; + return thrd_success; +} +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +/* Tested in tss_get.c */ +int main( void ) +{ + return TEST_RESULTS; +} + +#endif