[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22172 - gnunet/src/testing
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22172 - gnunet/src/testing |
Date: |
Wed, 20 Jun 2012 21:15:35 +0200 |
Author: harsha
Date: 2012-06-20 21:15:35 +0200 (Wed, 20 Jun 2012)
New Revision: 22172
Modified:
gnunet/src/testing/testing.c
Log:
-fixed assertion failure when GNUNET_TESTING_peer_shutdown is called in
GNUNET_TESTING_peer/service_run
Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c 2012-06-20 18:48:08 UTC (rev 22171)
+++ gnunet/src/testing/testing.c 2012-06-20 19:15:35 UTC (rev 22172)
@@ -1005,9 +1005,7 @@
struct GNUNET_TESTING_Peer *peer;
struct GNUNET_CONFIGURATION_Handle *cfg;
- GNUNET_log_setup (testdir,
- "WARNING",
- NULL);
+ GNUNET_log_setup (testdir, "WARNING", NULL);
system = GNUNET_TESTING_system_create (testdir, "127.0.0.1");
if (NULL == system)
return 1;
@@ -1042,7 +1040,8 @@
sc.tm_cls = tm_cls;
sc.peer = peer;
GNUNET_SCHEDULER_run (&service_run_main, &sc); /* Scheduler loop */
- if (GNUNET_OK != GNUNET_TESTING_peer_stop (peer))
+ if ((NULL != peer->main_process) &&
+ (GNUNET_OK != GNUNET_TESTING_peer_stop (peer)))
{
GNUNET_TESTING_peer_destroy (peer);
GNUNET_CONFIGURATION_destroy (cfg);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22172 - gnunet/src/testing,
gnunet <=