From 285cae67480c0031d4c18d7e9f58f90bc2d93e73 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Tue, 11 May 2010 19:00:59 +0000 Subject: [PATCH] warn on daemon termination failure --- src/testing/test_testing_connect.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; } -- 2.25.1