diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-12-19 18:27:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-12-19 18:27:51 +0000 |
commit | 6652156e7d7083205b68d5fc73a085b88e662d96 (patch) | |
tree | 546b23e0ae412c947da65df4a7ec0b8f73be0d92 /src/datacache/test_datacache.c | |
parent | 15de71a29f22caee6b15956b162e1e5a0f5f4f3e (diff) | |
download | gnunet-6652156e7d7083205b68d5fc73a085b88e662d96.tar.gz gnunet-6652156e7d7083205b68d5fc73a085b88e662d96.zip |
mantis 1627
Diffstat (limited to 'src/datacache/test_datacache.c')
-rw-r--r-- | src/datacache/test_datacache.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/datacache/test_datacache.c b/src/datacache/test_datacache.c index b626ce67d..7d55ef8b7 100644 --- a/src/datacache/test_datacache.c +++ b/src/datacache/test_datacache.c | |||
@@ -130,7 +130,7 @@ FAILURE: | |||
130 | int | 130 | int |
131 | main (int argc, char *argv[]) | 131 | main (int argc, char *argv[]) |
132 | { | 132 | { |
133 | const char *pos; | 133 | char *pos; |
134 | char cfg_name[128]; | 134 | char cfg_name[128]; |
135 | char *const xargv[] = { | 135 | char *const xargv[] = { |
136 | "test-datacache", | 136 | "test-datacache", |
@@ -156,10 +156,17 @@ main (int argc, char *argv[]) | |||
156 | plugin_name = argv[0]; | 156 | plugin_name = argv[0]; |
157 | while (NULL != (pos = strstr(plugin_name, "_"))) | 157 | while (NULL != (pos = strstr(plugin_name, "_"))) |
158 | plugin_name = pos+1; | 158 | plugin_name = pos+1; |
159 | if (NULL != (pos = strstr(plugin_name, "."))) | ||
160 | pos[0] = 0; | ||
161 | else | ||
162 | pos = (char *) plugin_name; | ||
163 | |||
159 | GNUNET_snprintf (cfg_name, | 164 | GNUNET_snprintf (cfg_name, |
160 | sizeof (cfg_name), | 165 | sizeof (cfg_name), |
161 | "test_datacache_data_%s.conf", | 166 | "test_datacache_data_%s.conf", |
162 | plugin_name); | 167 | plugin_name); |
168 | if (pos != plugin_name) | ||
169 | pos[0] = '.'; | ||
163 | GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, | 170 | GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, |
164 | xargv, "test-datacache", "nohelp", | 171 | xargv, "test-datacache", "nohelp", |
165 | options, &run, NULL); | 172 | options, &run, NULL); |