X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fcnd_init.c;h=2d3fc7e66536f1f61fd07d67be7ec14390ff7d59;hb=5fd032eae66fba700cb9927840222b068c62361e;hp=1683691b19d6810636b025c6b4348988b5babcdf;hpb=b41576197133c1211d6ec353faf93f505f573b8a;p=pdclib 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