]> pd.if.org Git - pdclib/blobdiff - opt/nothread/mtx_unlock.c
* Test cleanups: surround the code for all functions by #ifndef REGTEST
[pdclib] / opt / nothread / mtx_unlock.c
index 02244bbed591b682cc065cf694e72f4a73a7cccb..214a06390a51e752f109b7d53fb1561291b72b03 100644 (file)
@@ -1,3 +1,4 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int mtx_unlock(mtx_t *mtx)\r
@@ -6,4 +7,15 @@ 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
+#endif\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