X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fcnd_init.c;h=9e22f7d89d62a3d71c55f661ceb128b733ba1815;hb=ad695562522feac5197c19716dd91922f229cf32;hp=1683691b19d6810636b025c6b4348988b5babcdf;hpb=97dd2fddbdb56005b16a1b0aa19ed15cd77269fc;p=pdclib.old diff --git a/opt/nothread/cnd_init.c b/opt/nothread/cnd_init.c index 1683691..9e22f7d 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