X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_trylock.c;h=bffc8b85b139b430df32c437585dd70fe06308b5;hb=219271fd548949abce8bd75c34dd42e519418fc4;hp=ae3275775046114800efb65ddebb12c0a4d752bd;hpb=b41576197133c1211d6ec353faf93f505f573b8a;p=pdclib diff --git a/opt/nothread/mtx_trylock.c b/opt/nothread/mtx_trylock.c index ae32757..bffc8b8 100644 --- a/opt/nothread/mtx_trylock.c +++ b/opt/nothread/mtx_trylock.c @@ -1,3 +1,4 @@ +#ifndef REGTEST #include int mtx_trylock(mtx_t *mtx) @@ -9,3 +10,14 @@ int mtx_trylock(mtx_t *mtx) return thrd_success; } } +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif \ No newline at end of file