aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-19 12:29:04 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-19 12:29:04 +0000
commit6ee357f1ac32f1ca6c8012a2d17f09901eb2ed50 (patch)
tree5af0edc84b0cb8281b01e70eb040cbc7f212c04f /src/transport/test_plugin_transport.c
parentdedd5548c1fa90f04080389d0826e0e8d3c0ad8c (diff)
downloadgnunet-6ee357f1ac32f1ca6c8012a2d17f09901eb2ed50.tar.gz
gnunet-6ee357f1ac32f1ca6c8012a2d17f09901eb2ed50.zip
fix
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r--src/transport/test_plugin_transport.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index 60a33c65a..ec1b6b76c 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -145,6 +145,15 @@ unload_plugins (void *cls,
145} 145}
146 146
147 147
148static void
149unload_task (void *cls,
150 const struct GNUNET_SCHEDULER_TaskContext *tc)
151{
152 struct GNUNET_CONFIGURATION_Handle *cfg = cls;
153 unload_plugins (NULL, cfg);
154}
155
156
148static GNUNET_SCHEDULER_TaskIdentifier validation_timeout_task; 157static GNUNET_SCHEDULER_TaskIdentifier validation_timeout_task;
149 158
150 159
@@ -169,7 +178,11 @@ validation_notification (void *cls,
169 /* Sailor: if this is the last test, calling this function 178 /* Sailor: if this is the last test, calling this function
170 here will end the process. */ 179 here will end the process. */
171 ok = 0; /* if the last test succeeded, report success */ 180 ok = 0; /* if the last test succeeded, report success */
172 unload_plugins (NULL, cfg); 181 GNUNET_SCHEDULER_add_continuation (sched,
182 GNUNET_NO,
183 &unload_task,
184 (void*) cfg,
185 GNUNET_SCHEDULER_REASON_PREREQ_DONE);
173} 186}
174 187
175 188
@@ -309,6 +322,7 @@ run (void *cls,
309 GNUNET_asprintf (&libname, "libgnunet_plugin_transport_tcp"); 322 GNUNET_asprintf (&libname, "libgnunet_plugin_transport_tcp");
310 323
311 api = GNUNET_PLUGIN_load(libname, &env); 324 api = GNUNET_PLUGIN_load(libname, &env);
325 GNUNET_free (libname);
312 if (api == NULL) 326 if (api == NULL)
313 { 327 {
314 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 328 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,