aboutsummaryrefslogtreecommitdiff
path: root/src/core/test_core_api_start_only.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-01-05 09:43:05 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-01-05 09:43:05 +0000
commit6a2f1c15154c2e896b2a6352e505bf8eee99912b (patch)
tree9c7d015eafb4e743a1bc6c795ffae7cfbf65f4ab /src/core/test_core_api_start_only.c
parente238459109bf91ee9f15c5d30b0158527fad8eb5 (diff)
downloadgnunet-6a2f1c15154c2e896b2a6352e505bf8eee99912b.tar.gz
gnunet-6a2f1c15154c2e896b2a6352e505bf8eee99912b.zip
Fixed failing on sparcbot:
- removing SERVICEHOME dirs - increasing timeout
Diffstat (limited to 'src/core/test_core_api_start_only.c')
-rw-r--r--src/core/test_core_api_start_only.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/core/test_core_api_start_only.c b/src/core/test_core_api_start_only.c
index dc5e35b00..b6ad19b77 100644
--- a/src/core/test_core_api_start_only.c
+++ b/src/core/test_core_api_start_only.c
@@ -33,6 +33,8 @@
33 33
34#define VERBOSE GNUNET_NO 34#define VERBOSE GNUNET_NO
35 35
36#define TIMEOUT 3
37
36#define START_ARM GNUNET_YES 38#define START_ARM GNUNET_YES
37 39
38#define MTYPE 12345 40#define MTYPE 12345
@@ -195,7 +197,7 @@ run (void *cls,
195 OKPP; 197 OKPP;
196 setup_peer (&p1, "test_core_api_peer1.conf"); 198 setup_peer (&p1, "test_core_api_peer1.conf");
197 setup_peer (&p2, "test_core_api_peer2.conf"); 199 setup_peer (&p2, "test_core_api_peer2.conf");
198 timeout_task_id = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, 200 timeout_task_id = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, TIMEOUT),
199 &timeout_task, 201 &timeout_task,
200 NULL); 202 NULL);
201 p1.ch = GNUNET_CORE_connect (p1.cfg, 1, 203 p1.ch = GNUNET_CORE_connect (p1.cfg, 1,
@@ -242,6 +244,8 @@ check ()
242 struct GNUNET_GETOPT_CommandLineOption options[] = { 244 struct GNUNET_GETOPT_CommandLineOption options[] = {
243 GNUNET_GETOPT_OPTION_END 245 GNUNET_GETOPT_OPTION_END
244 }; 246 };
247 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-1");
248 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-2");
245 249
246 ok = 1; 250 ok = 1;
247 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, 251 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1,
@@ -266,7 +270,8 @@ main (int argc, char *argv[])
266#endif 270#endif
267 NULL); 271 NULL);
268 ret = check (); 272 ret = check ();
269 273 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-1");
274 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-2");
270 return ret; 275 return ret;
271} 276}
272 277