Created SILC Runtime Toolkit git repository Part II.
[runtime.git] / lib / silcutil / tests / test_silcenv.c
index 40c01f84ccbd8bff00f869cb4c7095d6a258e94e..52a5e81e9fc3f5aff594572077470fed6fcc47cb 100644 (file)
@@ -1,16 +1,17 @@
 /* environment tests */
 
-#include "silc.h"
+#include "silcruntime.h"
 
 int main(int argc, char **argv)
 {
   SilcBool success = FALSE;
+  int i;
 
   if (argc > 1 && !strcmp(argv[1], "-d")) {
     silc_log_debug(TRUE);
     silc_log_quick(TRUE);
     silc_log_debug_hexdump(TRUE);
-    silc_log_set_debug_string("*env*");
+    silc_log_set_debug_string("*env*,*errno*");
   }
 
   silc_setenv("FOO", "BAR");
@@ -24,5 +25,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;
 }