]> pd.if.org Git - pdclib/blobdiff - opt/nothread/tss_set.c
dos2unix
[pdclib] / opt / nothread / tss_set.c
index feea85d345b80857af5e2eb12444d58ac00f5404..e66ea33894b32613a7f042378a0368da0c92b70a 100644 (file)
@@ -1,7 +1,20 @@
-#include <threads.h>\r
-\r
-int tss_set(tss_t key, void *val)\r
-{\r
-       key.self->value = val;\r
-       return thrd_success;\r
-}
\ No newline at end of file
+#ifndef REGTEST
+#include <threads.h>
+
+int tss_set(tss_t key, void *val)
+{
+       key.self->value = val;
+       return thrd_success;
+}
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+/* Tested in tss_get.c */
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif