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

Unified Diff: third_party/sqlite/src/test/wal3.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/wal.test ('k') | third_party/sqlite/src/test/wal5.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/wal3.test
diff --git a/third_party/sqlite/src/test/wal3.test b/third_party/sqlite/src/test/wal3.test
index 18e6075a4a870799821b667995b9b3f01344fb5c..9ee8a9945815ffff2ca6bac6d77892c11128deb9 100644
--- a/third_party/sqlite/src/test/wal3.test
+++ b/third_party/sqlite/src/test/wal3.test
@@ -60,7 +60,11 @@ do_test wal3-1.0 {
COMMIT;
PRAGMA cache_size = 10;
}
- wal_frame_count test.db-wal 1024
+ set x [wal_frame_count test.db-wal 1024]
+ if {$::G(perm:name)=="memsubsys1"} {
+ if {$x==4251 || $x==4290} {set x 4056}
+ }
+ set x
} 4056
for {set i 1} {$i < 50} {incr i} {
@@ -271,9 +275,9 @@ proc lock_callback {method filename handle lock} {
if {$lock == "1 7 lock exclusive"} { return SQLITE_BUSY }
return SQLITE_OK
}
-puts " Warning: This next test case causes SQLite to call xSleep(1) 100 times."
-puts " Normally this equates to a 100ms delay, but if SQLite is built on unix"
-puts " without HAVE_USLEEP defined, it may be 100 seconds."
+puts "# Warning: This next test case causes SQLite to call xSleep(1) 100 times."
+puts "# Normally this equates to a 100ms delay, but if SQLite is built on unix"
+puts "# without HAVE_USLEEP defined, it may be 100 seconds."
do_test wal3-4.3 {
db close
set ::locks [list]
@@ -281,7 +285,7 @@ do_test wal3-4.3 {
catchsql { SELECT * FROM x }
} {1 {locking protocol}}
-puts " Warning: Same again!"
+puts "# Warning: Same again!"
proc lock_callback {method filename handle lock} {
if {$lock == "0 1 lock exclusive"} { return SQLITE_BUSY }
return SQLITE_OK
« no previous file with comments | « third_party/sqlite/src/test/wal.test ('k') | third_party/sqlite/src/test/wal5.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698