&num_peers))
num_peers = DEFAULT_NUM_PEERS;
- GNUNET_CONFIGURATION_get_value_string (cfg, "testing", "hosts",
- &hostnames);
+ if (GNUNET_SYSERR == GNUNET_CONFIGURATION_get_value_string (cfg, "testing", "hosts",
+ &hostnames))
+ {
+ GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "No hosts specified, running all tests on localhost\n");
+ }
+
peers_left = num_peers;
pg = GNUNET_TESTING_daemons_start (sched,
if (GNUNET_YES != GNUNET_CONFIGURATION_get_value_string(cfg, "paths", "servicehome", &test_directory))
{
ok = 404;
+ if (dotOutFile != NULL)
+ {
+ fclose(dotOutFile);
+ }
return;
}
"connect_topology_option_modifier",
"TESTING");
GNUNET_free (connect_topology_option_modifier_string);
+ ok = 707;
+ if (dotOutFile != NULL)
+ {
+ fclose(dotOutFile);
+ }
+ return;
}
+ GNUNET_free (connect_topology_option_modifier_string);
}
- GNUNET_CONFIGURATION_get_value_string (cfg, "testing", "blacklist_transports",
- &blacklist_transports);
+ if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, "testing", "blacklist_transports",
+ &blacklist_transports))
+ {
+ GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "No transports specified for blacklisting in blacklist testcase (this shouldn't happen!)\n");
+ ok = 808;
+ if (dotOutFile != NULL)
+ {
+ fclose(dotOutFile);
+ }
+ return;
+ }
if (GNUNET_YES ==
GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "blacklist_topology",