]> pd.if.org Git - pdclib/blobdiff - opt/nothread/mtx_trylock.c
Unit tests
[pdclib] / opt / nothread / mtx_trylock.c
index ae3275775046114800efb65ddebb12c0a4d752bd..3333a86f2c313071d50055f7b532661f03a003f1 100644 (file)
@@ -9,3 +9,13 @@ int mtx_trylock(mtx_t *mtx)
                return thrd_success;\r
        }\r
 }\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