Tell core that we want to have this packet delivered
[oweals/gnunet.git] / src / util / test_configuration.c
index fd2b91bfb6781bfdf5ec667dc250b581d7c43b69..77e33a586f085942a618737038103edce6e68867 100644 (file)
@@ -144,7 +144,7 @@ diffsCallBack (void *cls,
          cbData->section = section;
          printf ("\nSection: %s\n", section);
        }
-      printf ("%s = %s\n", option, value);
+      printf ("%s = %s\n", option, abs_value);
 #endif
     default:
       break;
@@ -473,7 +473,12 @@ main (int argc, char *argv[])
       return 1;
     }
   failureCount += testConfig ();
-  failureCount += 2 * testConfigFilenames ();
+  if (failureCount > 0)
+    goto error;
+
+  failureCount = testConfigFilenames ();
+  if (failureCount > 0)
+    goto error;
 
   if (GNUNET_OK != GNUNET_CONFIGURATION_write (cfg, "/tmp/gnunet-test.conf"))
     {
@@ -537,6 +542,7 @@ main (int argc, char *argv[])
 
   GNUNET_CONFIGURATION_destroy (cfgDefault);
 
+error:
   if (failureCount != 0)
     {
       fprintf (stderr, "Test failed: %u\n", failureCount);