Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/sqlite/src/test/sort4.test

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/test/sort2.test ('k') | third_party/sqlite/src/test/sortfault.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/sqlite/src/test/sort2.test ('k') | third_party/sqlite/src/test/sortfault.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698