X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_lock.c;h=121444e4b9a255d344825115c0ece923e512d3d7;hb=5155ca96295a12b4857fc0e6a9629cc43a9a85fa;hp=0a1afbdc4cdd60bfedf3470d8e0bc2e6f0890c32;hpb=a18343e497615802f47e0f6876b5bed73af674e0;p=pdclib diff --git a/opt/nothread/mtx_lock.c b/opt/nothread/mtx_lock.c index 0a1afbd..121444e 100644 --- a/opt/nothread/mtx_lock.c +++ b/opt/nothread/mtx_lock.c @@ -7,4 +7,14 @@ int mtx_lock(mtx_t *mtx) *mtx = 1; return thrd_success; } else return thrd_error; -} \ No newline at end of file +} + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif \ No newline at end of file