]> pd.if.org Git - pdclib/blobdiff - opt/nothread/mtx_unlock.c
Unit tests
[pdclib] / opt / nothread / mtx_unlock.c
index 02244bbed591b682cc065cf694e72f4a73a7cccb..1c11401f7931788068b98ec49bc0ec625d871a22 100644 (file)
@@ -6,4 +6,14 @@ int mtx_unlock(mtx_t *mtx)
                *mtx = 0;\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