X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_lock.c;h=d086986555dcd48c6808122333bd51bad77b55fd;hb=10f020f1a39804bbef8cd1cf35ef7c9a8e75c7d6;hp=0a1afbdc4cdd60bfedf3470d8e0bc2e6f0890c32;hpb=97dd2fddbdb56005b16a1b0aa19ed15cd77269fc;p=pdclib.old diff --git a/opt/nothread/mtx_lock.c b/opt/nothread/mtx_lock.c index 0a1afbd..d086986 100644 --- a/opt/nothread/mtx_lock.c +++ b/opt/nothread/mtx_lock.c @@ -1,5 +1,5 @@ +#ifndef REGTEST #include -#include int mtx_lock(mtx_t *mtx) { @@ -7,4 +7,15 @@ int mtx_lock(mtx_t *mtx) *mtx = 1; return thrd_success; } else 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