Created SILC Runtime Toolkit git repository Part II.
[runtime.git] / lib / silcutil / tests / test_silcatomic.c
index 23105f4ee01dc6f607c56fc511b2b6f3ab3b46e7..f1f998720f9240457ed245fd0bb51d287ff6a9d5 100644 (file)
@@ -1,7 +1,6 @@
 /* atomic operation tests */
 
-#include "silc.h"
-#include "silcatomic.h"
+#include "silcruntime.h"
 
 int main(int argc, char **argv)
 {
@@ -17,7 +16,7 @@ int main(int argc, char **argv)
   if (argc > 1 && !strcmp(argv[1], "-d")) {
     silc_log_debug(TRUE);
     silc_log_debug_hexdump(TRUE);
-    silc_log_set_debug_string("*atomic*");
+    silc_log_set_debug_string("*atomic*,*errno*");
   }
 
   silc_atomic_init8(&ref8, 1);
@@ -115,5 +114,5 @@ int main(int argc, char **argv)
   SILC_LOG_DEBUG(("Testing was %s", success ? "SUCCESS" : "FAILURE"));
   fprintf(stderr, "Testing was %s\n", success ? "SUCCESS" : "FAILURE");
 
-  return success;
+  return !success;
 }