aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_cmd_start_peer_v2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_cmd_start_peer_v2.c')
-rw-r--r--src/transport/transport_api_cmd_start_peer_v2.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/transport/transport_api_cmd_start_peer_v2.c b/src/transport/transport_api_cmd_start_peer_v2.c
index 0e39bd915..2ab58574a 100644
--- a/src/transport/transport_api_cmd_start_peer_v2.c
+++ b/src/transport/transport_api_cmd_start_peer_v2.c
@@ -177,7 +177,6 @@ notify_connect (void *cls,
177 */ 177 */
178static void 178static void
179start_peer_run (void *cls, 179start_peer_run (void *cls,
180 const struct GNUNET_TESTING_Command *cmd,
181 struct GNUNET_TESTING_Interpreter *is) 180 struct GNUNET_TESTING_Interpreter *is)
182{ 181{
183 struct StartPeerState_v2 *sps = cls; 182 struct StartPeerState_v2 *sps = cls;
@@ -195,7 +194,7 @@ start_peer_run (void *cls,
195 LOG (GNUNET_ERROR_TYPE_ERROR, 194 LOG (GNUNET_ERROR_TYPE_ERROR,
196 "File not found: `%s'\n", 195 "File not found: `%s'\n",
197 sps->cfgname); 196 sps->cfgname);
198 GNUNET_TESTING_interpreter_fail (); 197 GNUNET_TESTING_interpreter_fail (is);
199 return; 198 return;
200 } 199 }
201 200
@@ -232,7 +231,8 @@ start_peer_run (void *cls,
232 "UNIXPATH", 231 "UNIXPATH",
233 communicator_unix_path); 232 communicator_unix_path);
234 233
235 system_cmd = GNUNET_TESTING_interpreter_lookup_command (sps->system_label); 234 system_cmd = GNUNET_TESTING_interpreter_lookup_command (is,
235 sps->system_label);
236 GNUNET_TESTING_get_trait_test_system (system_cmd, 236 GNUNET_TESTING_get_trait_test_system (system_cmd,
237 &tl_system); 237 &tl_system);
238 238
@@ -246,7 +246,7 @@ start_peer_run (void *cls,
246 "Testing library failed to create unique configuration based on `%s'\n", 246 "Testing library failed to create unique configuration based on `%s'\n",
247 sps->cfgname); 247 sps->cfgname);
248 GNUNET_CONFIGURATION_destroy (sps->cfg); 248 GNUNET_CONFIGURATION_destroy (sps->cfg);
249 GNUNET_TESTING_interpreter_fail (); 249 GNUNET_TESTING_interpreter_fail (is);
250 return; 250 return;
251 } 251 }
252 252
@@ -262,7 +262,7 @@ start_peer_run (void *cls,
262 sps->cfgname, 262 sps->cfgname,
263 emsg); 263 emsg);
264 GNUNET_free (emsg); 264 GNUNET_free (emsg);
265 GNUNET_TESTING_interpreter_fail (); 265 GNUNET_TESTING_interpreter_fail (is);
266 return; 266 return;
267 } 267 }
268 268
@@ -272,7 +272,7 @@ start_peer_run (void *cls,
272 "Testing library failed to create unique configuration based on `%s'\n", 272 "Testing library failed to create unique configuration based on `%s'\n",
273 sps->cfgname); 273 sps->cfgname);
274 GNUNET_free (emsg); 274 GNUNET_free (emsg);
275 GNUNET_TESTING_interpreter_fail (); 275 GNUNET_TESTING_interpreter_fail (is);
276 return; 276 return;
277 } 277 }
278 278
@@ -291,7 +291,7 @@ start_peer_run (void *cls,
291 "Testing library failed to obtain peer identity for peer %u\n", 291 "Testing library failed to obtain peer identity for peer %u\n",
292 sps->no); 292 sps->no);
293 GNUNET_free (emsg); 293 GNUNET_free (emsg);
294 GNUNET_TESTING_interpreter_fail (); 294 GNUNET_TESTING_interpreter_fail (is);
295 return; 295 return;
296 } 296 }
297 LOG (GNUNET_ERROR_TYPE_DEBUG, 297 LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -312,7 +312,7 @@ start_peer_run (void *cls,
312 sps->cfgname, 312 sps->cfgname,
313 emsg); 313 emsg);
314 GNUNET_free (emsg); 314 GNUNET_free (emsg);
315 GNUNET_TESTING_interpreter_fail (); 315 GNUNET_TESTING_interpreter_fail (is);
316 return; 316 return;
317 } 317 }
318 318
@@ -324,7 +324,7 @@ start_peer_run (void *cls,
324 sps->cfgname, 324 sps->cfgname,
325 emsg); 325 emsg);
326 GNUNET_free (emsg); 326 GNUNET_free (emsg);
327 GNUNET_TESTING_interpreter_fail (); 327 GNUNET_TESTING_interpreter_fail (is);
328 return; 328 return;
329 } 329 }
330 330
@@ -336,7 +336,7 @@ start_peer_run (void *cls,
336 sps->cfgname, 336 sps->cfgname,
337 emsg); 337 emsg);
338 GNUNET_free (emsg); 338 GNUNET_free (emsg);
339 GNUNET_TESTING_interpreter_fail (); 339 GNUNET_TESTING_interpreter_fail (is);
340 return; 340 return;
341 } 341 }
342 sps->rh_task = GNUNET_SCHEDULER_add_now (retrieve_hello, sps); 342 sps->rh_task = GNUNET_SCHEDULER_add_now (retrieve_hello, sps);
@@ -348,8 +348,7 @@ start_peer_run (void *cls,
348 * 348 *
349 */ 349 */
350static void 350static void
351start_peer_cleanup (void *cls, 351start_peer_cleanup (void *cls)
352 const struct GNUNET_TESTING_Command *cmd)
353{ 352{
354 struct StartPeerState_v2 *sps = cls; 353 struct StartPeerState_v2 *sps = cls;
355 354