diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-13 08:46:17 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-13 08:46:17 +0000 |
commit | aef5657ec217334e901b8d79308817e8710f4b8b (patch) | |
tree | 067ea8b67d2f1a8211aecee7ae73d51b94a4d461 /src/transport/test_quota_compliance.c | |
parent | a94ae55ae85b2cc1c42e794ee7ae703bf7666fd5 (diff) | |
download | gnunet-aef5657ec217334e901b8d79308817e8710f4b8b.tar.gz gnunet-aef5657ec217334e901b8d79308817e8710f4b8b.zip |
- fixed result
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r-- | src/transport/test_quota_compliance.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index ebfbcd5eb..24425e46e 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c | |||
@@ -46,8 +46,6 @@ static char *test_plugin; | |||
46 | 46 | ||
47 | static char *test_name; | 47 | static char *test_name; |
48 | 48 | ||
49 | static int ok; | ||
50 | |||
51 | static GNUNET_SCHEDULER_TaskIdentifier die_task; | 49 | static GNUNET_SCHEDULER_TaskIdentifier die_task; |
52 | 50 | ||
53 | static GNUNET_SCHEDULER_TaskIdentifier measure_task; | 51 | static GNUNET_SCHEDULER_TaskIdentifier measure_task; |
@@ -198,7 +196,7 @@ end_badly () | |||
198 | if (p2 != NULL) | 196 | if (p2 != NULL) |
199 | GNUNET_TRANSPORT_TESTING_stop_peer (tth, p2); | 197 | GNUNET_TRANSPORT_TESTING_stop_peer (tth, p2); |
200 | 198 | ||
201 | ok = GNUNET_SYSERR; | 199 | test_failed = GNUNET_YES; |
202 | } | 200 | } |
203 | 201 | ||
204 | 202 | ||
@@ -297,7 +295,7 @@ notify_ready (void *cls, size_t size, void *buf) | |||
297 | if (GNUNET_SCHEDULER_NO_TASK != die_task) | 295 | if (GNUNET_SCHEDULER_NO_TASK != die_task) |
298 | GNUNET_SCHEDULER_cancel (die_task); | 296 | GNUNET_SCHEDULER_cancel (die_task); |
299 | die_task = GNUNET_SCHEDULER_add_now (&end_badly, NULL); | 297 | die_task = GNUNET_SCHEDULER_add_now (&end_badly, NULL); |
300 | ok = 42; | 298 | test_failed = 1; |
301 | return 0; | 299 | return 0; |
302 | } | 300 | } |
303 | 301 | ||
@@ -556,11 +554,9 @@ check () | |||
556 | GNUNET_GETOPT_OPTION_END | 554 | GNUNET_GETOPT_OPTION_END |
557 | }; | 555 | }; |
558 | 556 | ||
559 | ok = 1; | ||
560 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, argv, test_name, | 557 | GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, argv, test_name, |
561 | "nohelp", options, &run, &ok); | 558 | "nohelp", options, &run, NULL); |
562 | 559 | return test_failed; | |
563 | return ok; | ||
564 | } | 560 | } |
565 | 561 | ||
566 | int | 562 | int |