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

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

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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/backcompat.test ('k') | third_party/sqlite/src/test/backup4.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/backup.test
diff --git a/third_party/sqlite/src/test/backup.test b/third_party/sqlite/src/test/backup.test
index 3b1e1db9e588a44289ee7653ecd01ebad4745bd6..829b32452da01839d00f3f7a176d0efe3d2cdd44 100644
--- a/third_party/sqlite/src/test/backup.test
+++ b/third_party/sqlite/src/test/backup.test
@@ -164,7 +164,7 @@ foreach zOpenScript [list {
set file_dest temp
}] {
foreach rows_dest {0 3 10} {
-foreach pgsz_dest {512 1024 2048} {
+foreach pgsz_dest {512 1024 2048 4096} {
foreach nPagePerStep {1 200} {
# Open the databases.
@@ -176,17 +176,16 @@ foreach nPagePerStep {1 200} {
# in-memory destination is only possible if the initial destination
# page size is the same as the source page size (in this case 1024 bytes).
#
- set isMemDest [expr {
- $zDestFile eq ":memory:" || $file_dest eq "temp" && $TEMP_STORE>=2
- }]
-
- if { $isMemDest==0 || $pgsz_dest == 1024 } {
- if 0 {
- puts -nonewline "Test $iTest: src=$zSrcFile dest=$zDestFile"
- puts -nonewline " (as $db_dest.$file_dest)"
- puts -nonewline " rows_dest=$rows_dest pgsz_dest=$pgsz_dest"
- puts ""
- }
+ set isMemDest [expr { $zDestFile eq ":memory:" || $file_dest eq "temp" }]
+
+ if 0 {
+ puts -nonewline "Test $iTest: src=$zSrcFile dest=$zDestFile"
+ puts -nonewline " (as $db_dest.$file_dest)"
+ puts -nonewline " rows_dest=$rows_dest pgsz_dest=$pgsz_dest"
+ puts ""
+ }
+
+ if { $isMemDest==0 || $pgsz_dest==1024 || $rows_dest==0 } {
# Set up the content of the source database.
execsql {
« no previous file with comments | « third_party/sqlite/src/test/backcompat.test ('k') | third_party/sqlite/src/test/backup4.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698