]> pd.if.org Git - pdclib.old/blobdiff - opt/nothread/cnd_wait.c
* Test cleanups: surround the code for all functions by #ifndef REGTEST
[pdclib.old] / opt / nothread / cnd_wait.c
index 2948d4f2fa27b4711d5104d35472e6da4beb52f8..be2fcbbe3d427373f1e6ed3e41be891c8ed80423 100644 (file)
@@ -1,6 +1,18 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int cnd_wait(cnd_t *cond, mtx_t *mtx)\r
 {\r
        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