mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
Remove unused parameter testname in create_test_db(const char *testname)
This commit is contained in:
parent
7dad639c49
commit
1f46262278
@ -32,7 +32,7 @@ static void db_fatal(const char *fmt, ...)
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct db *create_test_db(const char *testname)
|
static struct db *create_test_db(void)
|
||||||
{
|
{
|
||||||
struct db *db;
|
struct db *db;
|
||||||
char filename[] = "/tmp/ldb-XXXXXX";
|
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)
|
static bool test_empty_db_migrate(void)
|
||||||
{
|
{
|
||||||
struct db *db = create_test_db(__func__);
|
struct db *db = create_test_db();
|
||||||
CHECK(db);
|
CHECK(db);
|
||||||
db_begin_transaction(db);
|
db_begin_transaction(db);
|
||||||
CHECK(db_get_version(db) == -1);
|
CHECK(db_get_version(db) == -1);
|
||||||
@ -64,7 +64,7 @@ static bool test_empty_db_migrate(void)
|
|||||||
|
|
||||||
static bool test_primitives(void)
|
static bool test_primitives(void)
|
||||||
{
|
{
|
||||||
struct db *db = create_test_db(__func__);
|
struct db *db = create_test_db();
|
||||||
db_begin_transaction(db);
|
db_begin_transaction(db);
|
||||||
CHECK(db->in_transaction);
|
CHECK(db->in_transaction);
|
||||||
db_commit_transaction(db);
|
db_commit_transaction(db);
|
||||||
@ -88,7 +88,7 @@ static bool test_primitives(void)
|
|||||||
|
|
||||||
static bool test_vars(void)
|
static bool test_vars(void)
|
||||||
{
|
{
|
||||||
struct db *db = create_test_db(__func__);
|
struct db *db = create_test_db();
|
||||||
char *varname = "testvar";
|
char *varname = "testvar";
|
||||||
CHECK(db);
|
CHECK(db);
|
||||||
db_migrate(db, NULL);
|
db_migrate(db, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user