diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-18 12:30:29 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-18 12:30:29 +0000 |
commit | 8a44c62b724481110559a62912b5881254fff851 (patch) | |
tree | 5198ca1b58b57dc705c70cb37401bce0fafb1959 /src/core/test_core_quota_compliance.c | |
parent | 189336b08e81c0c5f4aabc9063fb180ef0a346dd (diff) | |
download | gnunet-8a44c62b724481110559a62912b5881254fff851.tar.gz gnunet-8a44c62b724481110559a62912b5881254fff851.zip |
different directories for each testcase
Diffstat (limited to 'src/core/test_core_quota_compliance.c')
-rw-r--r-- | src/core/test_core_quota_compliance.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c index 9e0f33522..65f28bb72 100644 --- a/src/core/test_core_quota_compliance.c +++ b/src/core/test_core_quota_compliance.c | |||
@@ -733,8 +733,23 @@ main (int argc, char *argv[]) | |||
733 | #endif | 733 | #endif |
734 | NULL); | 734 | NULL); |
735 | ret = check (); | 735 | ret = check (); |
736 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-1"); | 736 | if (test == SYMMETRIC) |
737 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-2"); | 737 | { |
738 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-sym-peer-1/"); | ||
739 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-sym-peer-2/"); | ||
740 | } | ||
741 | else if (test == ASYMMETRIC_SEND_LIMITED) | ||
742 | { | ||
743 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-asym-sender-lim-peer-1/"); | ||
744 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-asym-sender-lim-peer-2/"); | ||
745 | } | ||
746 | else if (test == ASYMMETRIC_RECV_LIMITED) | ||
747 | { | ||
748 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-asym-recv-lim-peer-1/"); | ||
749 | GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-quota-asym-recv-lim-peer-2/"); | ||
750 | } | ||
751 | |||
752 | |||
738 | 753 | ||
739 | return ret; | 754 | return ret; |
740 | } | 755 | } |