mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
unit tests: don't crash if !HAVE_SQLITE3.
Fixes: #4928 Reported-by: @whitslack Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -262,10 +262,13 @@ int main(int argc, char *argv[])
|
||||
common_setup(argv[0]);
|
||||
ld->config = test_config;
|
||||
|
||||
ok &= test_empty_db_migrate(ld);
|
||||
ok &= test_vars(ld);
|
||||
ok &= test_primitives();
|
||||
ok &= test_manip_columns();
|
||||
/* We do a runtime test here, so we still check compile! */
|
||||
if (HAVE_SQLITE3) {
|
||||
ok &= test_empty_db_migrate(ld);
|
||||
ok &= test_vars(ld);
|
||||
ok &= test_primitives();
|
||||
ok &= test_manip_columns();
|
||||
}
|
||||
|
||||
tal_free(ld);
|
||||
common_shutdown();
|
||||
|
||||
Reference in New Issue
Block a user