1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add test cases to improve coverage of VDBE branches. Still some to go.

FossilOrigin-Name: 4cef609d61de272cfdc2b39e1d49c7cd56ec834086bd63095116ff98f4d402bd
This commit is contained in:
dan
2019-04-04 17:58:34 +00:00
parent 80ac9cb3c0
commit b84b38fd89
8 changed files with 198 additions and 13 deletions

View File

@ -251,6 +251,31 @@ do_test pragma-1.14.4 {
PRAGMA synchronous;
}
} {2}
do_execsql_test 1.15.1 {
PRAGMA default_cache_size = 0;
}
do_execsql_test 1.15.2 {
PRAGMA default_cache_size;
} $DFLT_CACHE_SZ
do_execsql_test 1.15.3 {
PRAGMA default_cache_size = -500;
}
do_execsql_test 1.15.4 {
PRAGMA default_cache_size;
} 500
do_execsql_test 1.15.3 {
PRAGMA default_cache_size = 500;
}
do_execsql_test 1.15.4 {
PRAGMA default_cache_size;
} 500
db close
hexio_write test.db 48 FFFFFF00
sqlite3 db test.db
do_execsql_test 1.15.4 {
PRAGMA default_cache_size;
} 256
} ;# ifcapable pager_pragmas
# Test turning "flag" pragmas on and off.