diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-11-10 20:43:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-11-10 20:43:30 +0000 |
commit | 8a25345d472b2ef4c94567b77dbaea777789e399 (patch) | |
tree | d7ceb3703b21364ed48ee7a1ec1528ce4c2acd36 /src/fs | |
parent | 95a1c7ec7d5d290cf4a23d2166afc226399c6a28 (diff) | |
download | gnunet-8a25345d472b2ef4c94567b77dbaea777789e399.tar.gz gnunet-8a25345d472b2ef4c94567b77dbaea777789e399.zip |
get rid of (most) unnecessary sleeps
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/test_fs_download.c | 2 | ||||
-rw-r--r-- | src/fs/test_fs_list_indexed.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_namespace.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_publish.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_search.c | 1 | ||||
-rw-r--r-- | src/fs/test_fs_start_stop.c | 2 | ||||
-rw-r--r-- | src/fs/test_fs_unindex.c | 1 |
7 files changed, 2 insertions, 7 deletions
diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c index 4b940e8dc..f528203ad 100644 --- a/src/fs/test_fs_download.c +++ b/src/fs/test_fs_download.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include "gnunet_arm_service.h" | 29 | #include "gnunet_arm_service.h" |
30 | #include "gnunet_fs_service.h" | 30 | #include "gnunet_fs_service.h" |
31 | 31 | ||
32 | #define VERBOSE GNUNET_YES | 32 | #define VERBOSE GNUNET_NO |
33 | 33 | ||
34 | #define START_ARM GNUNET_YES | 34 | #define START_ARM GNUNET_YES |
35 | 35 | ||
diff --git a/src/fs/test_fs_list_indexed.c b/src/fs/test_fs_list_indexed.c index ba0906c81..60dca2ec4 100644 --- a/src/fs/test_fs_list_indexed.c +++ b/src/fs/test_fs_list_indexed.c | |||
@@ -205,7 +205,6 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
205 | "-L", "DEBUG", | 205 | "-L", "DEBUG", |
206 | #endif | 206 | #endif |
207 | "-c", cfgname, NULL); | 207 | "-c", cfgname, NULL); |
208 | sleep (1); /* allow ARM to start */ | ||
209 | #endif | 208 | #endif |
210 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 209 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
211 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); | 210 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); |
diff --git a/src/fs/test_fs_namespace.c b/src/fs/test_fs_namespace.c index 90286067d..d0db8dfcf 100644 --- a/src/fs/test_fs_namespace.c +++ b/src/fs/test_fs_namespace.c | |||
@@ -66,7 +66,6 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
66 | "-L", "DEBUG", | 66 | "-L", "DEBUG", |
67 | #endif | 67 | #endif |
68 | "-c", cfgname, NULL); | 68 | "-c", cfgname, NULL); |
69 | sleep (1); /* allow ARM to start */ | ||
70 | #endif | 69 | #endif |
71 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 70 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
72 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); | 71 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); |
diff --git a/src/fs/test_fs_publish.c b/src/fs/test_fs_publish.c index 46a2dc3da..b51fb1cba 100644 --- a/src/fs/test_fs_publish.c +++ b/src/fs/test_fs_publish.c | |||
@@ -194,7 +194,6 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
194 | "-L", "DEBUG", | 194 | "-L", "DEBUG", |
195 | #endif | 195 | #endif |
196 | "-c", cfgname, NULL); | 196 | "-c", cfgname, NULL); |
197 | sleep (1); /* allow ARM to start */ | ||
198 | #endif | 197 | #endif |
199 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 198 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
200 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); | 199 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); |
diff --git a/src/fs/test_fs_search.c b/src/fs/test_fs_search.c index 2ef323317..973018b04 100644 --- a/src/fs/test_fs_search.c +++ b/src/fs/test_fs_search.c | |||
@@ -196,7 +196,6 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
196 | "-L", "DEBUG", | 196 | "-L", "DEBUG", |
197 | #endif | 197 | #endif |
198 | "-c", cfgname, NULL); | 198 | "-c", cfgname, NULL); |
199 | sleep (1); /* allow ARM to start */ | ||
200 | #endif | 199 | #endif |
201 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 200 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
202 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); | 201 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); |
diff --git a/src/fs/test_fs_start_stop.c b/src/fs/test_fs_start_stop.c index eac14b070..a6f902962 100644 --- a/src/fs/test_fs_start_stop.c +++ b/src/fs/test_fs_start_stop.c | |||
@@ -63,7 +63,6 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
63 | "-L", "DEBUG", | 63 | "-L", "DEBUG", |
64 | #endif | 64 | #endif |
65 | "-c", cfgname, NULL); | 65 | "-c", cfgname, NULL); |
66 | sleep (1); /* allow ARM to start */ | ||
67 | #endif | 66 | #endif |
68 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 67 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
69 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); | 68 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); |
@@ -104,6 +103,7 @@ run (void *cls, | |||
104 | GNUNET_FS_FLAGS_NONE, | 103 | GNUNET_FS_FLAGS_NONE, |
105 | GNUNET_FS_OPTIONS_END); | 104 | GNUNET_FS_OPTIONS_END); |
106 | GNUNET_assert (NULL != fs); | 105 | GNUNET_assert (NULL != fs); |
106 | sleep (1); /* FIXME */ | ||
107 | GNUNET_FS_stop (fs); | 107 | GNUNET_FS_stop (fs); |
108 | } | 108 | } |
109 | 109 | ||
diff --git a/src/fs/test_fs_unindex.c b/src/fs/test_fs_unindex.c index 4c751c9a6..b8fac3b12 100644 --- a/src/fs/test_fs_unindex.c +++ b/src/fs/test_fs_unindex.c | |||
@@ -202,7 +202,6 @@ setup_peer (struct PeerContext *p, const char *cfgname) | |||
202 | "-L", "DEBUG", | 202 | "-L", "DEBUG", |
203 | #endif | 203 | #endif |
204 | "-c", cfgname, NULL); | 204 | "-c", cfgname, NULL); |
205 | sleep (1); /* allow ARM to start */ | ||
206 | #endif | 205 | #endif |
207 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); | 206 | GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); |
208 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); | 207 | GNUNET_ARM_start_services (p->cfg, sched, "core", NULL); |