-#include <threads.h>\r
-\r
-int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)\r
-{\r
- return mtx_lock(mtx);\r
-}
\ No newline at end of file
+#ifndef REGTEST
+#include <threads.h>
+
+int mtx_timedlock(mtx_t *restrict mtx, const struct timespec *restrict ts)
+{
+ return mtx_lock(mtx);
+}
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+ return TEST_RESULTS;
+}
+
+#endif