exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 0ab29c68c884599f3b19760e9487ff7bddd8ada8
parent 7e37ee5afe9a1c16401faba64cacc0da65502921
Author: Sree Harsha Totakura <sreeharsha@totakura.in>
Date:   Thu, 26 Mar 2015 18:36:52 +0100

db: use correct testname

Diffstat:
Msrc/mint/test_mint_db.c | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git 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; }