[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22626 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22626 - gnunet/src/transport |
Date: |
Fri, 13 Jul 2012 10:46:17 +0200 |
Author: wachs
Date: 2012-07-13 10:46:17 +0200 (Fri, 13 Jul 2012)
New Revision: 22626
Modified:
gnunet/src/transport/test_quota_compliance.c
Log:
- fixed result
Modified: gnunet/src/transport/test_quota_compliance.c
===================================================================
--- gnunet/src/transport/test_quota_compliance.c 2012-07-13 00:39:26 UTC
(rev 22625)
+++ gnunet/src/transport/test_quota_compliance.c 2012-07-13 08:46:17 UTC
(rev 22626)
@@ -46,8 +46,6 @@
static char *test_name;
-static int ok;
-
static GNUNET_SCHEDULER_TaskIdentifier die_task;
static GNUNET_SCHEDULER_TaskIdentifier measure_task;
@@ -198,7 +196,7 @@
if (p2 != NULL)
GNUNET_TRANSPORT_TESTING_stop_peer (tth, p2);
- ok = GNUNET_SYSERR;
+ test_failed = GNUNET_YES;
}
@@ -297,7 +295,7 @@
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 @@
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22626 - gnunet/src/transport,
gnunet <=