]> pd.if.org Git - pdclib/blobdiff - opt/nothread/mtx_timedlock.c
Unit tests
[pdclib] / opt / nothread / mtx_timedlock.c
index b8166b5b97cfee37b74271635a5114db62e19b11..e3cd4fb80b95de29bd41bc13edd978e7d07317e6 100644 (file)
@@ -3,4 +3,14 @@
 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
+}\r
+\r
+#ifdef TEST\r
+#include <_PDCLIB_test.h>\r
+\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif
\ No newline at end of file