diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-10 11:43:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-10 11:43:20 +0000 |
commit | dadbf4c950bf4cd459c95ac4ab61a02af7b3668b (patch) | |
tree | ddaf0644dcd97fbef7f67a68eff2a5cf204b0bb7 /src/datastore/test_datastore_api.c | |
parent | 8efaae301b29ec7cbdb921ac5e6b30ae2c143568 (diff) |
-using new testing api to determine plugin name
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 cfeac86db1..374067ca01 100644 --- a/src/datastore/test_datastore_api.c +++ b/src/datastore/test_datastore_api.c @@ -491,17 +491,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_underscore (argv[0]); GNUNET_snprintf (cfg_name, sizeof (cfg_name), "test_datastore_api_data_%s.conf", plugin_name); if (0 != |