[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12017 - gnunet/src/dv
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12017 - gnunet/src/dv |
Date: |
Mon, 28 Jun 2010 14:23:43 +0200 |
Author: nevans
Date: 2010-06-28 14:23:43 +0200 (Mon, 28 Jun 2010)
New Revision: 12017
Modified:
gnunet/src/dv/test_transport_api_dv.c
Log:
shutdown context
Modified: gnunet/src/dv/test_transport_api_dv.c
===================================================================
--- gnunet/src/dv/test_transport_api_dv.c 2010-06-28 12:23:08 UTC (rev
12016)
+++ gnunet/src/dv/test_transport_api_dv.c 2010-06-28 12:23:43 UTC (rev
12017)
@@ -166,6 +166,30 @@
static struct TestMessageContext *other_test_messages;
+/**
+ * Check whether peers successfully shut down.
+ */
+void shutdown_callback (void *cls,
+ const char *emsg)
+{
+ if (emsg != NULL)
+ {
+#if VERBOSE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Shutdown of peers failed!\n");
+#endif
+ if (ok == 0)
+ ok = 666;
+ }
+ else
+ {
+#if VERBOSE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "All peers successfully shut down!\n");
+#endif
+ }
+}
+
static void
finish_testing ()
{
@@ -244,7 +268,7 @@
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Calling daemons_stop\n");
#endif
- GNUNET_TESTING_daemons_stop (pg, TIMEOUT);
+ GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
#if VERBOSE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"daemons_stop finished\n");
@@ -349,7 +373,7 @@
if (pg != NULL)
{
- GNUNET_TESTING_daemons_stop (pg, TIMEOUT);
+ GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
ok = 7331; /* Opposite of leet */
}
else
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12017 - gnunet/src/dv,
gnunet <=