summaryrefslogtreecommitdiff
path: root/src/transport/test_quota_compliance.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-07-13 08:46:17 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-07-13 08:46:17 +0000
commitaef5657ec217334e901b8d79308817e8710f4b8b (patch)
tree067ea8b67d2f1a8211aecee7ae73d51b94a4d461 /src/transport/test_quota_compliance.c
parenta94ae55ae85b2cc1c42e794ee7ae703bf7666fd5 (diff)
- fixed result
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r--src/transport/test_quota_compliance.c12
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;
static char *test_name;
-static int ok;
-
static GNUNET_SCHEDULER_TaskIdentifier die_task;
static GNUNET_SCHEDULER_TaskIdentifier measure_task;
@@ -198,7 +196,7 @@ end_badly ()
if (p2 != NULL)
GNUNET_TRANSPORT_TESTING_stop_peer (tth, p2);
- ok = GNUNET_SYSERR;
+ test_failed = GNUNET_YES;
}
@@ -297,7 +295,7 @@ notify_ready (void *cls, size_t size, void *buf)
if (GNUNET_SCHEDULER_NO_TASK != die_task)
GNUNET_SCHEDULER_cancel (die_task);
die_task = GNUNET_SCHEDULER_add_now (&end_badly, NULL);
- ok = 42;
+ test_failed = 1;
return 0;
}
@@ -556,11 +554,9 @@ check ()
GNUNET_GETOPT_OPTION_END
};
- ok = 1;
GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, argv, test_name,
- "nohelp", options, &run, &ok);
-
- return ok;
+ "nohelp", options, &run, NULL);
+ return test_failed;
}
int