diff options
Diffstat (limited to 'src/datacache/test_datacache_quota.c')
-rw-r--r-- | src/datacache/test_datacache_quota.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/datacache/test_datacache_quota.c b/src/datacache/test_datacache_quota.c index f943844a4..ad8681cec 100644 --- a/src/datacache/test_datacache_quota.c +++ b/src/datacache/test_datacache_quota.c | |||
@@ -44,9 +44,8 @@ static const char *plugin_name; | |||
44 | * some of the data from the last iteration is still there. | 44 | * some of the data from the last iteration is still there. |
45 | */ | 45 | */ |
46 | static void | 46 | static void |
47 | run (void *cls, | 47 | run (void *cls, char *const *args, const char *cfgfile, |
48 | char *const *args, | 48 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
49 | const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) | ||
50 | { | 49 | { |
51 | struct GNUNET_DATACACHE_Handle *h; | 50 | struct GNUNET_DATACACHE_Handle *h; |
52 | GNUNET_HashCode k; | 51 | GNUNET_HashCode k; |
@@ -140,14 +139,12 @@ main (int argc, char *argv[]) | |||
140 | else | 139 | else |
141 | pos = (char *) plugin_name; | 140 | pos = (char *) plugin_name; |
142 | 141 | ||
143 | GNUNET_snprintf (cfg_name, | 142 | GNUNET_snprintf (cfg_name, sizeof (cfg_name), "test_datacache_data_%s.conf", |
144 | sizeof (cfg_name), | 143 | plugin_name); |
145 | "test_datacache_data_%s.conf", plugin_name); | ||
146 | if (pos != plugin_name) | 144 | if (pos != plugin_name) |
147 | pos[0] = '.'; | 145 | pos[0] = '.'; |
148 | GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, | 146 | GNUNET_PROGRAM_run ((sizeof (xargv) / sizeof (char *)) - 1, xargv, |
149 | xargv, "test-datacache-quota", "nohelp", | 147 | "test-datacache-quota", "nohelp", options, &run, NULL); |
150 | options, &run, NULL); | ||
151 | if (ok != 0) | 148 | if (ok != 0) |
152 | fprintf (stderr, "Missed some testcases: %d\n", ok); | 149 | fprintf (stderr, "Missed some testcases: %d\n", ok); |
153 | return ok; | 150 | return ok; |