From dadbf4c950bf4cd459c95ac4ab61a02af7b3668b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 10 Jun 2012 11:43:20 +0000 Subject: -using new testing api to determine plugin name --- src/datastore/perf_datastore_api.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/datastore/perf_datastore_api.c') diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index e236b6235..fa2ee52dc 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c @@ -322,17 +322,9 @@ run (void *cls, int main (int argc, char *argv[]) { - char *pos; char cfg_name[128]; - /* determine name of plugin to use */ - plugin_name = argv[0]; - while (NULL != (pos = strstr (plugin_name, "_"))) - plugin_name = pos + 1; - if (NULL != (pos = strstr (plugin_name, "."))) - pos[0] = '\0'; - else - pos = (char *) plugin_name; + plugin_name = GNUNET_TESTING_get_testname_from_underscoare (argv[0]); GNUNET_snprintf (cfg_name, sizeof (cfg_name), "test_datastore_api_data_%s.conf", plugin_name); if (0 != -- cgit v1.2.3