]> pd.if.org Git - pdclib/blobdiff - opt/nothread/mtx_lock.c
Unit tests
[pdclib] / opt / nothread / mtx_lock.c
index 0a1afbdc4cdd60bfedf3470d8e0bc2e6f0890c32..121444e4b9a255d344825115c0ece923e512d3d7 100644 (file)
@@ -7,4 +7,14 @@ int mtx_lock(mtx_t *mtx)
                *mtx = 1;\r
                return thrd_success;\r
        } else return thrd_error;\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