LRN: Fix automake deps to allow -j* builds again
[oweals/gnunet.git] / src / util / test_configuration.c
index 429e03178b2ac45492f0314b5bb7d2656c7756a8..365161e34f79eebdeae4637a7114e95518462bc8 100644 (file)
@@ -144,7 +144,7 @@ diffsCallBack (void *cls,
          cbData->section = section;
          printf ("\nSection: %s\n", section);
        }
-      printf ("%s = %s\n", option, abs_value);
+      printf ("%s = %s\n", option, 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);