diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-17 20:35:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-17 20:35:52 +0000 |
commit | 61881ced3c4816fc1440217631d75ac934e92f35 (patch) | |
tree | 1b5d433e15d599bf731ebe7e14193234114203be /src/namestore | |
parent | db9c68c76d7a9eb3f200df9d0fcaf971387cb061 (diff) | |
download | gnunet-61881ced3c4816fc1440217631d75ac934e92f35.tar.gz gnunet-61881ced3c4816fc1440217631d75ac934e92f35.zip |
-check return value
Diffstat (limited to 'src/namestore')
-rw-r--r-- | src/namestore/test_namestore_api_zone_iteration_stop.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c index a5730ff21..38aae9b6d 100644 --- a/src/namestore/test_namestore_api_zone_iteration_stop.c +++ b/src/namestore/test_namestore_api_zone_iteration_stop.c | |||
@@ -431,11 +431,14 @@ run (void *cls, | |||
431 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 431 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
432 | struct GNUNET_TESTING_Peer *peer) | 432 | struct GNUNET_TESTING_Peer *peer) |
433 | { | 433 | { |
434 | directory = NULL; | 434 | GNUNET_assert (GNUNET_OK == |
435 | GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); | 435 | GNUNET_CONFIGURATION_get_value_string (cfg, |
436 | "PATHS", | ||
437 | "GNUNET_TEST_HOME", | ||
438 | &directory)); | ||
436 | GNUNET_DISK_directory_remove (directory); | 439 | GNUNET_DISK_directory_remove (directory); |
437 | 440 | ||
438 | endbadly_task = GNUNET_SCHEDULER_add_delayed(TIMEOUT, &endbadly, NULL); | 441 | endbadly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &endbadly, NULL); |
439 | nsh = GNUNET_NAMESTORE_connect (cfg); | 442 | nsh = GNUNET_NAMESTORE_connect (cfg); |
440 | GNUNET_break (NULL != nsh); | 443 | GNUNET_break (NULL != nsh); |
441 | /* first, iterate over empty namestore */ | 444 | /* first, iterate over empty namestore */ |
@@ -443,7 +446,8 @@ run (void *cls, | |||
443 | NULL, &empty_zone_proc, nsh); | 446 | NULL, &empty_zone_proc, nsh); |
444 | if (NULL == zi) | 447 | if (NULL == zi) |
445 | { | 448 | { |
446 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to create zone iterator\n"); | 449 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
450 | "Failed to create zone iterator\n"); | ||
447 | GNUNET_break (0); | 451 | GNUNET_break (0); |
448 | GNUNET_SCHEDULER_cancel (endbadly_task); | 452 | GNUNET_SCHEDULER_cancel (endbadly_task); |
449 | endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL); | 453 | endbadly_task = GNUNET_SCHEDULER_add_now (&endbadly, NULL); |