X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_unlock.c;h=214a06390a51e752f109b7d53fb1561291b72b03;hb=219271fd548949abce8bd75c34dd42e519418fc4;hp=02244bbed591b682cc065cf694e72f4a73a7cccb;hpb=b41576197133c1211d6ec353faf93f505f573b8a;p=pdclib diff --git a/opt/nothread/mtx_unlock.c b/opt/nothread/mtx_unlock.c index 02244bb..214a063 100644 --- a/opt/nothread/mtx_unlock.c +++ b/opt/nothread/mtx_unlock.c @@ -1,3 +1,4 @@ +#ifndef REGTEST #include int mtx_unlock(mtx_t *mtx) @@ -6,4 +7,15 @@ int mtx_unlock(mtx_t *mtx) *mtx = 0; 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