Index: third_party/sqlite/src/test/sort4.test |
diff --git a/third_party/sqlite/src/test/sort4.test b/third_party/sqlite/src/test/sort4.test |
index 01fcbfee95bd7dded149141a9783c7f66892a802..13d9a5999a8ac38ecb9c4a3edbca037a439c3948 100644 |
--- a/third_party/sqlite/src/test/sort4.test |
+++ b/third_party/sqlite/src/test/sort4.test |
@@ -17,9 +17,28 @@ |
set testdir [file dirname $argv0] |
source $testdir/tester.tcl |
set testprefix sort4 |
+db close |
+sqlite3_shutdown |
+sqlite3_config_pmasz 10 |
+sqlite3_initialize |
+sqlite3 db test.db |
+ |
# Configure the sorter to use 3 background threads. |
-db eval {PRAGMA threads=3} |
+# |
+# EVIDENCE-OF: R-19249-32353 SQLITE_LIMIT_WORKER_THREADS The maximum |
+# number of auxiliary worker threads that a single prepared statement |
+# may start. |
+# |
+do_test sort4-init001 { |
+ db eval {PRAGMA threads=5} |
+ sqlite3_limit db SQLITE_LIMIT_WORKER_THREADS -1 |
+} {5} |
+do_test sort4-init002 { |
+ sqlite3_limit db SQLITE_LIMIT_WORKER_THREADS 3 |
+ db eval {PRAGMA threads} |
+} {3} |
+ |
# Minimum number of seconds to run for. If the value is 0, each test |
# is run exactly once. Otherwise, tests are repeated until the timeout |