diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-26 09:26:30 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-26 09:26:30 +0000 |
commit | 5e191913f2d2fdc58f8596483c172a7e1a8a07e9 (patch) | |
tree | edd643ca542aa8337a40c3ba8e181ce42f16c1d1 /src/core/test_core_quota_compliance.c | |
parent | 52416688de7cdffa8bf613877c3759ef64f4aa5d (diff) | |
download | gnunet-5e191913f2d2fdc58f8596483c172a7e1a8a07e9.tar.gz gnunet-5e191913f2d2fdc58f8596483c172a7e1a8a07e9.zip |
Diffstat (limited to 'src/core/test_core_quota_compliance.c')
-rw-r--r-- | src/core/test_core_quota_compliance.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c index ed2927e9f..9f68c7e35 100644 --- a/src/core/test_core_quota_compliance.c +++ b/src/core/test_core_quota_compliance.c | |||
@@ -136,7 +136,8 @@ terminate_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
136 | static void | 136 | static void |
137 | terminate_task_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 137 | terminate_task_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
138 | { | 138 | { |
139 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Testcase timout, exit!\n"); | 139 | if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) |
140 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Testcase failed!\n"); | ||
140 | //GNUNET_break (0); | 141 | //GNUNET_break (0); |
141 | 142 | ||
142 | if (measure_task != GNUNET_SCHEDULER_NO_TASK) | 143 | if (measure_task != GNUNET_SCHEDULER_NO_TASK) |
@@ -719,6 +720,22 @@ main (int argc, char *argv[]) | |||
719 | test = ASYMMETRIC_RECV_LIMITED; | 720 | test = ASYMMETRIC_RECV_LIMITED; |
720 | } | 721 | } |
721 | GNUNET_assert (test != -1); | 722 | GNUNET_assert (test != -1); |
723 | if (test == SYMMETRIC) | ||
724 | { | ||
725 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-sym-peer-1/"); | ||
726 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-sym-peer-2/"); | ||
727 | } | ||
728 | else if (test == ASYMMETRIC_SEND_LIMITED) | ||
729 | { | ||
730 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-asym-sender-lim-peer-1/"); | ||
731 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-asym-sender-lim-peer-2/"); | ||
732 | } | ||
733 | else if (test == ASYMMETRIC_RECV_LIMITED) | ||
734 | { | ||
735 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-asym-recv-lim-peer-1/"); | ||
736 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-asym-recv-lim-peer-2/"); | ||
737 | } | ||
738 | |||
722 | GNUNET_log_setup ("test-core-quota-compliance", | 739 | GNUNET_log_setup ("test-core-quota-compliance", |
723 | #if VERBOSE | 740 | #if VERBOSE |
724 | "DEBUG", | 741 | "DEBUG", |