diff options
author | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-26 18:36:52 +0100 |
---|---|---|
committer | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-26 18:36:52 +0100 |
commit | 0ab29c68c884599f3b19760e9487ff7bddd8ada8 (patch) | |
tree | 0e7889c013b6745e33f89dace432d871b24ef047 /src/mint/test_mint_db.c | |
parent | 7e37ee5afe9a1c16401faba64cacc0da65502921 (diff) | |
download | exchange-0ab29c68c884599f3b19760e9487ff7bddd8ada8.tar.xz |
db: use correct testname
Diffstat (limited to 'src/mint/test_mint_db.c')
-rw-r--r-- | src/mint/test_mint_db.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mint/test_mint_db.c b/src/mint/test_mint_db.c index 4f41cdc23..abc701ae5 100644 --- a/src/mint/test_mint_db.c +++ b/src/mint/test_mint_db.c @@ -361,6 +361,7 @@ main (int argc, }; const char *plugin_name; char *config_filename; + char *testname; result = -1; if (NULL == (plugin_name = strrchr (argv[0], (int) '-'))) @@ -369,19 +370,23 @@ main (int argc, return -1; } plugin_name++; + (void) GNUNET_asprintf (&testname, + "test-mint-db-%s", plugin_name); (void) GNUNET_asprintf (&config_filename, - "test-mint-db-%s.conf", plugin_name); + "%s.conf", testname); argv2[0] = argv[0]; argv2[2] = config_filename; if (GNUNET_OK != GNUNET_PROGRAM_run ((sizeof (argv2)/sizeof (char *)) - 1, argv2, - "test-mint-db-postgres", + testname, "Test cases for mint database helper functions.", options, &run, NULL)) { GNUNET_free (config_filename); + GNUNET_free (testname); return 3; } GNUNET_free (config_filename); + GNUNET_free (testname); return result; } |