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