X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_timedlock.c;h=6ab7dfb8054b048ebb6d7ba7fd507978e31fea2b;hb=00da512946a32e38f815ca3b2a3b6111e4678fe1;hp=b8166b5b97cfee37b74271635a5114db62e19b11;hpb=97dd2fddbdb56005b16a1b0aa19ed15cd77269fc;p=pdclib.old diff --git a/opt/nothread/mtx_timedlock.c b/opt/nothread/mtx_timedlock.c index b8166b5..6ab7dfb 100644 --- a/opt/nothread/mtx_timedlock.c +++ b/opt/nothread/mtx_timedlock.c @@ -1,6 +1,18 @@ +#ifndef REGTEST #include int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts) { return mtx_lock(mtx); -} \ 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