aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/test_perf_taler_exchangedb.c
diff options
context:
space:
mode:
authorJeff Burdges <burdges@gnunet.org>2016-05-02 11:27:31 +0200
committerJeff Burdges <burdges@gnunet.org>2016-05-02 11:27:31 +0200
commit025fbdb41aa8783570079915283494d1005533f6 (patch)
treebd63843c100648ee0559f103e5092d94cd03d65c /src/exchangedb/test_perf_taler_exchangedb.c
parent6cdc5f3a420593eeac3256d69bd5cecc8940f1db (diff)
parent5852baa7e97f5f5313747f1da1c4583f33b90d55 (diff)
Merge branch 'master' of git.taler.net:/var/git/exchange
Diffstat (limited to 'src/exchangedb/test_perf_taler_exchangedb.c')
-rw-r--r--src/exchangedb/test_perf_taler_exchangedb.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/exchangedb/test_perf_taler_exchangedb.c b/src/exchangedb/test_perf_taler_exchangedb.c
index a4ec9591..8f7aa55d 100644
--- a/src/exchangedb/test_perf_taler_exchangedb.c
+++ b/src/exchangedb/test_perf_taler_exchangedb.c
@@ -35,6 +35,7 @@
#define NB_WITHDRAW_INIT 1
#define NB_WITHDRAW_SAVE 1
+
/**
* Allocate, copies and free all the data used in the interpreter
* Used to check for memory leaks
@@ -42,7 +43,8 @@
static void
test_allocate ()
{
- struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *dki, *dki_copy;
+ struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *dki;
+ struct TALER_EXCHANGEDB_DenominationKeyIssueInformation *dki_copy;
struct PERF_TALER_EXCHANGEDB_Reserve *reserve, *reserve_copy;
struct PERF_TALER_EXCHANGEDB_Coin *coin, *coin_copy;
struct TALER_EXCHANGEDB_Deposit *deposit, *deposit_copy;
@@ -68,6 +70,7 @@ test_allocate ()
PERF_TALER_EXCHANGEDB_deposit_free (deposit_copy);
}
+
/**
* Runs the performances tests for the exchange database
* and logs the results using Gauger
@@ -170,13 +173,15 @@ main (int argc, char ** argv)
// End of deposit initialization
PERF_TALER_EXCHANGEDB_INIT_CMD_END ("end"),
};
-
+
test_allocate ();
ret = PERF_TALER_EXCHANGEDB_run_benchmark ("test-perf-taler-exchangedb",
- "./test-exchange-db-postgres.conf",
- init,
- benchmark);
+ "./test-exchange-db-postgres.conf",
+ init,
+ benchmark);
if (GNUNET_SYSERR == ret)
return 1;
+ if (GNUNET_NO == ret)
+ return 77; /* testcase skipped */
return 0;
}