diff options
Diffstat (limited to 'src/datastore/test_datastore_api.c')
-rw-r--r-- | src/datastore/test_datastore_api.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/datastore/test_datastore_api.c b/src/datastore/test_datastore_api.c index cfeac86db..374067ca0 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c | |||
@@ -491,17 +491,9 @@ run (void *cls, | |||
491 | int | 491 | int |
492 | main (int argc, char *argv[]) | 492 | main (int argc, char *argv[]) |
493 | { | 493 | { |
494 | char *pos; | ||
495 | char cfg_name[128]; | 494 | char cfg_name[128]; |
496 | 495 | ||
497 | /* determine name of plugin to use */ | 496 | plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); |
498 | plugin_name = argv[0]; | ||
499 | while (NULL != (pos = strstr (plugin_name, "_"))) | ||
500 | plugin_name = pos + 1; | ||
501 | if (NULL != (pos = strstr (plugin_name, "."))) | ||
502 | pos[0] = '\0'; | ||
503 | else | ||
504 | pos = (char *) plugin_name; | ||
505 | GNUNET_snprintf (cfg_name, sizeof (cfg_name), | 497 | GNUNET_snprintf (cfg_name, sizeof (cfg_name), |
506 | "test_datastore_api_data_%s.conf", plugin_name); | 498 | "test_datastore_api_data_%s.conf", plugin_name); |
507 | if (0 != | 499 | if (0 != |