aboutsummaryrefslogtreecommitdiff
path: root/test/exclusive.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/exclusive.test')
-rw-r--r--test/exclusive.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/exclusive.test b/test/exclusive.test
index 04de52913..5168fa748 100644
--- a/test/exclusive.test
+++ b/test/exclusive.test
@@ -511,6 +511,24 @@ do_execsql_test exclusive-6.5 {
SELECT * FROM sqlite_master;
} {exclusive}
+# 2019-12-26 ticket fb3b3024ea238d5c
+do_test exclusive-7.1 {
+ db close
+ forcedelete test.db test.db-journal test.db-wal
+ sqlite3 db test.db
+ # The following sequence of pragmas would trigger an assert()
+ # associated with Pager.changeCountDone inside of assert_pager_state(),
+ # prior to the fix.
+ db eval {
+ PRAGMA locking_mode = EXCLUSIVE;
+ PRAGMA journal_mode = WAL;
+ PRAGMA locking_mode = NORMAL;
+ PRAGMA user_version;
+ PRAGMA journal_mode = DELETE;
+ }
+} {exclusive wal normal 0 delete}
+
+
} ;# atomic_batch_write==0
finish_test