X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_init.c;h=21bb473e2f88ef813dfc83886f73b8551869f08f;hb=29387e76cd5cd340fe7d811dc9830931d3d0ec9b;hp=ff506e94e03e5ee67cde2b95fb831c990dea9eab;hpb=b41576197133c1211d6ec353faf93f505f573b8a;p=pdclib diff --git a/opt/nothread/mtx_init.c b/opt/nothread/mtx_init.c index ff506e9..21bb473 100644 --- a/opt/nothread/mtx_init.c +++ b/opt/nothread/mtx_init.c @@ -1,3 +1,4 @@ +#ifndef REGTEST #include int mtx_init(mtx_t *mtx, int type) @@ -5,3 +6,14 @@ int mtx_init(mtx_t *mtx, int type) *mtx = 0; return thrd_success; } +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif