]> pd.if.org Git - pdclib/blobdiff - opt/nothread/tss_create.c
Unit tests
[pdclib] / opt / nothread / tss_create.c
index 4b8ce168074f5196fc2a32c7e9c42c61813b8737..2a28fcadcf76419396801c441a6baf5236efbde9 100644 (file)
@@ -5,4 +5,15 @@ 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
+\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