X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=opt%2Fnothread%2Fcnd_init.c;h=13f1732e4971877e713f9b9e55c234371ce0aa5e;hp=1683691b19d6810636b025c6b4348988b5babcdf;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=b41576197133c1211d6ec353faf93f505f573b8a diff --git a/opt/nothread/cnd_init.c b/opt/nothread/cnd_init.c index 1683691..13f1732 100644 --- a/opt/nothread/cnd_init.c +++ b/opt/nothread/cnd_init.c @@ -1,3 +1,4 @@ +#ifndef REGTEST #include int cnd_init(cnd_t *cond) @@ -5,3 +6,14 @@ int cnd_init(cnd_t *cond) /* does nothing */ return thrd_success; } +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif