Browse Source

Remove unused parameter testname in create_test_db(const char *testname)

ppa-0.6.1
practicalswift 7 years ago
committed by Christian Decker
parent
commit
1f46262278
  1. 8
      wallet/test/run-db.c

8
wallet/test/run-db.c

@ -32,7 +32,7 @@ static void db_fatal(const char *fmt, ...)
va_end(ap);
}
static struct db *create_test_db(const char *testname)
static struct db *create_test_db(void)
{
struct db *db;
char filename[] = "/tmp/ldb-XXXXXX";
@ -48,7 +48,7 @@ static struct db *create_test_db(const char *testname)
static bool test_empty_db_migrate(void)
{
struct db *db = create_test_db(__func__);
struct db *db = create_test_db();
CHECK(db);
db_begin_transaction(db);
CHECK(db_get_version(db) == -1);
@ -64,7 +64,7 @@ static bool test_empty_db_migrate(void)
static bool test_primitives(void)
{
struct db *db = create_test_db(__func__);
struct db *db = create_test_db();
db_begin_transaction(db);
CHECK(db->in_transaction);
db_commit_transaction(db);
@ -88,7 +88,7 @@ static bool test_primitives(void)
static bool test_vars(void)
{
struct db *db = create_test_db(__func__);
struct db *db = create_test_db();
char *varname = "testvar";
CHECK(db);
db_migrate(db, NULL);

Loading…
Cancel
Save