aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-04-28 13:10:47 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-04-28 13:10:47 +0200
commit561a579587d1c1144ff89198832fa1ed15872f64 (patch)
tree9713f008cfbc64f4ed2396c3deda7ebf006420f1
parent514f92a9169d70113f2e189bd3d5f8e83034d3a9 (diff)
typo + adding macro for "make check"
-rw-r--r--src/backenddb/test-merchantdb-postgres.conf2
-rw-r--r--src/backenddb/test_merchantdb.c9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/backenddb/test-merchantdb-postgres.conf b/src/backenddb/test-merchantdb-postgres.conf
index 614519ba..f88fcefe 100644
--- a/src/backenddb/test-merchantdb-postgres.conf
+++ b/src/backenddb/test-merchantdb-postgres.conf
@@ -2,4 +2,4 @@
DB = postgres
[merchantdb-postgres]
-CONFIG = postges:///talertest
+CONFIG = postgres:///talertest
diff --git a/src/backenddb/test_merchantdb.c b/src/backenddb/test_merchantdb.c
index 96975ca9..6783cfc1 100644
--- a/src/backenddb/test_merchantdb.c
+++ b/src/backenddb/test_merchantdb.c
@@ -23,8 +23,15 @@
#include <taler/taler_util.h>
#include "taler_merchantdb_lib.h"
+#define FAILIF(cond) \
+ do { \
+ if (!(cond)){ break;} \
+ GNUNET_break (0); \
+ goto drop; \
+ } while (0)
+
static int result;
-static struct TALER_EXCHANGEDB_Plugin *plugin;
+static struct TALER_MERCHANTDB_Plugin *plugin;
/**
* Main function that will be run by the scheduler.