diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-05-11 19:00:59 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-05-11 19:00:59 +0000 |
commit | 285cae67480c0031d4c18d7e9f58f90bc2d93e73 (patch) | |
tree | 5827825a8aa53cb3a946293d4acf6435d4d5e18f /src/testing | |
parent | ffb6012a7dba4491694bba515c085ddb6503da4a (diff) | |
download | gnunet-285cae67480c0031d4c18d7e9f58f90bc2d93e73.tar.gz gnunet-285cae67480c0031d4c18d7e9f58f90bc2d93e73.zip |
warn on daemon termination failure
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/test_testing_connect.c | 11 |
1 files changed, 10 insertions, 1 deletions
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) | |||
68 | static void | 68 | static void |
69 | end1_cb (void *cls, const char *emsg) | 69 | end1_cb (void *cls, const char *emsg) |
70 | { | 70 | { |
71 | GNUNET_assert (emsg == NULL); | 71 | if (emsg != NULL) |
72 | { | ||
73 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Stopping daemon 1 gave: %s\n", emsg); | ||
74 | ok = 1; | ||
75 | } | ||
76 | else | ||
77 | { | ||
78 | ok = 0; | ||
79 | } | ||
80 | |||
72 | GNUNET_TESTING_daemon_stop (d2, TIMEOUT, &end2_cb, NULL, GNUNET_YES, GNUNET_NO); | 81 | GNUNET_TESTING_daemon_stop (d2, TIMEOUT, &end2_cb, NULL, GNUNET_YES, GNUNET_NO); |
73 | d2 = NULL; | 82 | d2 = NULL; |
74 | } | 83 | } |