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/avtrans.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/autovacuum.test ('k') | third_party/sqlite/src/test/backcompat.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/avtrans.test
diff --git a/third_party/sqlite/src/test/avtrans.test b/third_party/sqlite/src/test/avtrans.test
index 328e028c09b26d87b4f0c0d7e2b84ca40c235aa2..17a28606491ea7d6898caf44e961d16fb4ba2e17 100644
--- a/third_party/sqlite/src/test/avtrans.test
+++ b/third_party/sqlite/src/test/avtrans.test
@@ -22,8 +22,9 @@ source $testdir/tester.tcl
# Create several tables to work with.
#
do_test avtrans-1.0 {
- execsql {
- PRAGMA auto_vacuum=ON;
+ execsql { PRAGMA auto_vacuum=ON }
+ wal_set_journal_mode
+ execsql {
CREATE TABLE one(a int PRIMARY KEY, b text);
INSERT INTO one VALUES(1,'one');
INSERT INTO one VALUES(2,'two');
@@ -48,6 +49,7 @@ do_test avtrans-1.10 {
execsql {SELECT b FROM two ORDER BY a} altdb
} {I V X}
integrity_check avtrans-1.11
+wal_check_journal_mode avtrans-1.12
# Basic transactions
#
@@ -84,6 +86,7 @@ do_test avtrans-2.10 {
}
} {1 2 3 1 5 10}
integrity_check avtrans-2.11
+wal_check_journal_mode avtrans-2.12
# Check the locking behavior
#
@@ -162,7 +165,7 @@ do_test avtrans-3.14 {
} db} msg]
lappend v $msg
} {0 {1 2 3 4}}
-sqlite3_soft_heap_limit $soft_limit
+sqlite3_soft_heap_limit $cmdlinearg(soft-heap-limit)
integrity_check avtrans-3.15
do_test avtrans-4.1 {
@@ -854,7 +857,7 @@ proc signature {} {
# t3 a little larger, and thus takes a little longer, so doing 40 tests
# is more than 2.0 times slower than doing 20 tests. Considerably more.
#
-if {[info exists ISQUICK]} {
+if {[info exists G(isquick)]} {
set limit 20
} else {
set limit 40
@@ -913,9 +916,11 @@ for {set i 2} {$i<=$limit} {incr i} {
} {1}
}
}
+ wal_check_journal_mode avtrans-9.$i-6.$cnt
}
set ::pager_old_format 0
}
integrity_check avtrans-10.1
+wal_check_journal_mode avtrans-10.2
finish_test
« no previous file with comments | « third_party/sqlite/src/test/autovacuum.test ('k') | third_party/sqlite/src/test/backcompat.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698