[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29542 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29542 - gnunet/src/ats |
Date: |
Wed, 25 Sep 2013 15:34:37 +0200 |
Author: wachs
Date: 2013-09-25 15:34:37 +0200 (Wed, 25 Sep 2013)
New Revision: 29542
Modified:
gnunet/src/ats/test_ats_api_scheduling_add_address.c
Log:
modifications to test
Modified: gnunet/src/ats/test_ats_api_scheduling_add_address.c
===================================================================
--- gnunet/src/ats/test_ats_api_scheduling_add_address.c 2013-09-25
13:33:51 UTC (rev 29541)
+++ gnunet/src/ats/test_ats_api_scheduling_add_address.c 2013-09-25
13:34:37 UTC (rev 29542)
@@ -29,8 +29,14 @@
#include "ats.h"
#include "test_ats_api_common.h"
+/**
+ * Timeout task
+ */
static GNUNET_SCHEDULER_TaskIdentifier die_task;
+/**
+ * Statistics handle
+ */
struct GNUNET_STATISTICS_Handle *stats;
/**
@@ -137,7 +143,9 @@
const struct GNUNET_ATS_Information *atsi,
uint32_t ats_count)
{
-
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Did not expect suggestion
callback!\n");
+ GNUNET_SCHEDULER_add_now (&end_badly, NULL);
+ return;
}
@@ -156,8 +164,7 @@
if (sched_ats == NULL)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Could not connect to ATS
scheduling!\n");
- ret = 1;
- GNUNET_SCHEDULER_add_now (&end, NULL);
+ GNUNET_SCHEDULER_add_now (&end_badly, NULL);
return;
}
@@ -165,8 +172,7 @@
if (GNUNET_SYSERR == GNUNET_CRYPTO_hash_from_string(PEERID0,
&p.id.hashPubKey))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Could not setup peer!\n");
- ret = GNUNET_SYSERR;
- GNUNET_SCHEDULER_add_now (&end, NULL);
+ GNUNET_SCHEDULER_add_now (&end_badly, NULL);
return;
}
GNUNET_assert (0 == strcmp (PEERID0, GNUNET_i2s_full (&p.id)));
@@ -198,7 +204,7 @@
main (int argc, char *argv[])
{
ret = 0;
- if (0 != GNUNET_TESTING_peer_run ("test_ats_api_scheduling_add_address",
+ if (0 != GNUNET_TESTING_peer_run ("test-ats-api",
"test_ats_api.conf",
&run, NULL))
return 1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29542 - gnunet/src/ats,
gnunet <=