]> pd.if.org Git - pdclib/blobdiff - opt/nothread/tss_create.c
* Test cleanups: surround the code for all functions by #ifndef REGTEST
[pdclib] / opt / nothread / tss_create.c
index 4b8ce168074f5196fc2a32c7e9c42c61813b8737..e7ad53a835231716ee19d55fb0b9ba5bef9b5bf0 100644 (file)
@@ -1,3 +1,4 @@
+#ifndef REGTEST\r
 #include <threads.h>\r
 \r
 int tss_create(tss_t *key, tss_dtor_t dtor)\r
@@ -5,4 +6,16 @@ int tss_create(tss_t *key, tss_dtor_t dtor)
        key->self  = key;\r
        key->value = NULL;\r
        return thrd_success;\r
-}
\ No newline at end of file
+}\r
+#endif\r
+\r
+#ifdef TEST\r
+#include <_PDCLIB_test.h>\r
+\r
+/* Tested in tss_get.c */\r
+int main( void )\r
+{\r
+    return TEST_RESULTS;\r
+}\r
+\r
+#endif
\ No newline at end of file