From: Nathan S. Evans Date: Tue, 11 May 2010 19:00:59 +0000 (+0000) Subject: warn on daemon termination failure X-Git-Tag: initial-import-from-subversion-38251~21750 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=285cae67480c0031d4c18d7e9f58f90bc2d93e73;p=oweals%2Fgnunet.git warn on daemon termination failure --- diff --git a/src/testing/test_testing_connect.c b/src/testing/test_testing_connect.c index 735d0a7c1..6c3ff1ae9 100644 --- a/src/testing/test_testing_connect.c +++ b/src/testing/test_testing_connect.c @@ -68,7 +68,16 @@ end2_cb (void *cls, const char *emsg) static void end1_cb (void *cls, const char *emsg) { - GNUNET_assert (emsg == NULL); + if (emsg != NULL) + { + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Stopping daemon 1 gave: %s\n", emsg); + ok = 1; + } + else + { + ok = 0; + } + GNUNET_TESTING_daemon_stop (d2, TIMEOUT, &end2_cb, NULL, GNUNET_YES, GNUNET_NO); d2 = NULL; }