diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-30 08:17:37 +0000 |
commit | 95f9076a2139f5fb042b944a0658b6cda2fa35db (patch) | |
tree | b0826a2a1dcf812e6b4450fe6b05d47cd53ae49d /src/datastore/test_plugin_datastore.c | |
parent | 7746f68db77b9ca3c4aaca24ab2ce5253461240b (diff) | |
download | gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.tar.gz gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.zip |
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/datastore/test_plugin_datastore.c')
-rw-r--r-- | src/datastore/test_plugin_datastore.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/datastore/test_plugin_datastore.c b/src/datastore/test_plugin_datastore.c index d7dff1041..9ec0c53a2 100644 --- a/src/datastore/test_plugin_datastore.c +++ b/src/datastore/test_plugin_datastore.c | |||
@@ -267,14 +267,7 @@ test (void *cls) | |||
267 | { | 267 | { |
268 | struct CpsRunContext *crc = cls; | 268 | struct CpsRunContext *crc = cls; |
269 | struct GNUNET_HashCode key; | 269 | struct GNUNET_HashCode key; |
270 | const struct GNUNET_SCHEDULER_TaskContext *tc; | ||
271 | 270 | ||
272 | tc = GNUNET_SCHEDULER_get_task_context (); | ||
273 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) | ||
274 | { | ||
275 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Test aborted.\n"); | ||
276 | crc->phase = RP_ERROR; | ||
277 | } | ||
278 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 271 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
279 | "In phase %d, iteration %u\n", crc->phase, crc->cnt); | 272 | "In phase %d, iteration %u\n", crc->phase, crc->cnt); |
280 | switch (crc->phase) | 273 | switch (crc->phase) |