X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fcnd_wait.c;h=be2fcbbe3d427373f1e6ed3e41be891c8ed80423;hb=11b77089568a6386f90aab2bbdc0ca0df32ab765;hp=2948d4f2fa27b4711d5104d35472e6da4beb52f8;hpb=b41576197133c1211d6ec353faf93f505f573b8a;p=pdclib diff --git a/opt/nothread/cnd_wait.c b/opt/nothread/cnd_wait.c index 2948d4f..be2fcbb 100644 --- a/opt/nothread/cnd_wait.c +++ b/opt/nothread/cnd_wait.c @@ -1,6 +1,18 @@ +#ifndef REGTEST #include int cnd_wait(cnd_t *cond, mtx_t *mtx) { return thrd_error; -} \ No newline at end of file +} +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif \ No newline at end of file