From 6a2f1c15154c2e896b2a6352e505bf8eee99912b Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 5 Jan 2011 09:43:05 +0000 Subject: [PATCH] Fixed failing on sparcbot: - removing SERVICEHOME dirs - increasing timeout --- src/core/test_core_api_start_only.c | 9 +++++++-- 1 file 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 @@ #define VERBOSE GNUNET_NO +#define TIMEOUT 3 + #define START_ARM GNUNET_YES #define MTYPE 12345 @@ -195,7 +197,7 @@ run (void *cls, OKPP; setup_peer (&p1, "test_core_api_peer1.conf"); setup_peer (&p2, "test_core_api_peer2.conf"); - timeout_task_id = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, + timeout_task_id = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, TIMEOUT), &timeout_task, NULL); p1.ch = GNUNET_CORE_connect (p1.cfg, 1, @@ -242,6 +244,8 @@ check () struct GNUNET_GETOPT_CommandLineOption options[] = { GNUNET_GETOPT_OPTION_END }; + GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-1"); + GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-2"); ok = 1; GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, @@ -266,7 +270,8 @@ main (int argc, char *argv[]) #endif NULL); ret = check (); - + GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-1"); + GNUNET_DISK_directory_remove ("/tmp/test-gnunet-core-peer-2"); return ret; } -- 2.25.1