summaryrefslogtreecommitdiff
path: root/src/util/test_configuration.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_configuration.c')
-rw-r--r--src/util/test_configuration.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/test_configuration.c b/src/util/test_configuration.c
index 96f13eefe..67e532f40 100644
--- a/src/util/test_configuration.c
+++ b/src/util/test_configuration.c
@@ -236,14 +236,14 @@ checkDiffs (struct GNUNET_CONFIGURATION_Handle *cfg_default, int option)
236 GNUNET_CONFIGURATION_iterate (cfg, diffsCallBack, &cbData); 236 GNUNET_CONFIGURATION_iterate (cfg, diffsCallBack, &cbData);
237 if (1 == (ret = cbData.status)) 237 if (1 == (ret = cbData.status))
238 { 238 {
239 FPRINTF (stderr, "%s", 239 fprintf (stderr, "%s",
240 "Incorrect Configuration Diffs: Diffs may contain data not actually edited\n"); 240 "Incorrect Configuration Diffs: Diffs may contain data not actually edited\n");
241 goto housekeeping; 241 goto housekeeping;
242 } 242 }
243 cbData.cfgDiffs = cfg; 243 cbData.cfgDiffs = cfg;
244 GNUNET_CONFIGURATION_iterate (cfgDiffs, diffsCallBack, &cbData); 244 GNUNET_CONFIGURATION_iterate (cfgDiffs, diffsCallBack, &cbData);
245 if ((ret = cbData.status) == 1) 245 if ((ret = cbData.status) == 1)
246 FPRINTF (stderr, "%s", 246 fprintf (stderr, "%s",
247 "Incorrect Configuration Diffs: Data may be missing in diffs\n"); 247 "Incorrect Configuration Diffs: Data may be missing in diffs\n");
248 248
249housekeeping: 249housekeeping:
@@ -273,7 +273,7 @@ testConfig ()
273 return 1; 273 return 1;
274 if (0 != strcmp ("b", c)) 274 if (0 != strcmp ("b", c))
275 { 275 {
276 FPRINTF (stderr, "Got `%s'\n", c); 276 fprintf (stderr, "Got `%s'\n", c);
277 GNUNET_free (c); 277 GNUNET_free (c);
278 return 2; 278 return 2;
279 } 279 }
@@ -466,7 +466,7 @@ main (int argc, char *argv[])
466 if (GNUNET_OK != 466 if (GNUNET_OK !=
467 GNUNET_CONFIGURATION_parse (cfg, "test_configuration_data.conf")) 467 GNUNET_CONFIGURATION_parse (cfg, "test_configuration_data.conf"))
468 { 468 {
469 FPRINTF (stderr, "%s", "Failed to parse configuration file\n"); 469 fprintf (stderr, "%s", "Failed to parse configuration file\n");
470 GNUNET_CONFIGURATION_destroy (cfg); 470 GNUNET_CONFIGURATION_destroy (cfg);
471 return 1; 471 return 1;
472 } 472 }
@@ -480,12 +480,12 @@ main (int argc, char *argv[])
480 480
481 if (GNUNET_OK != GNUNET_CONFIGURATION_write (cfg, "/tmp/gnunet-test.conf")) 481 if (GNUNET_OK != GNUNET_CONFIGURATION_write (cfg, "/tmp/gnunet-test.conf"))
482 { 482 {
483 FPRINTF (stderr, "%s", "Failed to write configuration file\n"); 483 fprintf (stderr, "%s", "Failed to write configuration file\n");
484 GNUNET_CONFIGURATION_destroy (cfg); 484 GNUNET_CONFIGURATION_destroy (cfg);
485 return 1; 485 return 1;
486 } 486 }
487 GNUNET_CONFIGURATION_destroy (cfg); 487 GNUNET_CONFIGURATION_destroy (cfg);
488 GNUNET_assert (0 == UNLINK ("/tmp/gnunet-test.conf")); 488 GNUNET_assert (0 == unlink ("/tmp/gnunet-test.conf"));
489 489
490 cfg = GNUNET_CONFIGURATION_create (); 490 cfg = GNUNET_CONFIGURATION_create ();
491 if (GNUNET_OK != 491 if (GNUNET_OK !=
@@ -542,7 +542,7 @@ main (int argc, char *argv[])
542error: 542error:
543 if (failureCount != 0) 543 if (failureCount != 0)
544 { 544 {
545 FPRINTF (stderr, "Test failed: %u\n", failureCount); 545 fprintf (stderr, "Test failed: %u\n", failureCount);
546 return 1; 546 return 1;
547 } 547 }
548 return 0; 548 return 0;