aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_mq.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-28 16:21:34 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-28 16:21:34 +0000
commitde30f210414a1f1f296c0cfb4406b171c1fc7b62 (patch)
tree570cc93d141bb7e250c4e73fafc53eba7d6e70bc /src/core/test_core_api_mq.c
parent652e255add3511262060f3a13517716a72e3cb52 (diff)
downloadgnunet-de30f210414a1f1f296c0cfb4406b171c1fc7b62.tar.gz
gnunet-de30f210414a1f1f296c0cfb4406b171c1fc7b62.zip
generally use GNUNET_assert() instead of GNUNET_abort() to also log the error
Diffstat (limited to 'src/core/test_core_api_mq.c')
-rw-r--r--src/core/test_core_api_mq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/test_core_api_mq.c b/src/core/test_core_api_mq.c
index 9b2603a6c..b9ef9ea05 100644
--- a/src/core/test_core_api_mq.c
+++ b/src/core/test_core_api_mq.c
@@ -88,7 +88,7 @@ handle_test (void *cls,
88 } 88 }
89 if (num_received > NUM_MSG) 89 if (num_received > NUM_MSG)
90 { 90 {
91 GNUNET_abort (); 91 GNUNET_assert (0);
92 return GNUNET_SYSERR; 92 return GNUNET_SYSERR;
93 } 93 }
94 return GNUNET_OK; 94 return GNUNET_OK;
@@ -127,7 +127,7 @@ run (void *cls,
127 GNUNET_NO, handlers); 127 GNUNET_NO, handlers);
128 if (NULL == core) 128 if (NULL == core)
129 { 129 {
130 GNUNET_abort (); 130 GNUNET_assert (0);
131 return; 131 return;
132 } 132 }
133 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, NULL); 133 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, NULL);