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

Unified Diff: third_party/sqlite/src/test/io.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/intarray.test ('k') | third_party/sqlite/src/test/ioerr.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/io.test
diff --git a/third_party/sqlite/src/test/io.test b/third_party/sqlite/src/test/io.test
index 3848affd8ce9b52f23525176bdde105f35516950..0cc26eff4c22ec10b8d95c3e87101810ea61d27b 100644
--- a/third_party/sqlite/src/test/io.test
+++ b/third_party/sqlite/src/test/io.test
@@ -200,10 +200,16 @@ do_test io-2.5.3 {
# journal file is not actually created until the 'COMMIT' statement
# is executed.
#
+# Changed 2010-03-27: The size of the database is now stored in
+# bytes 28..31 and so when a page is added to the database, page 1
+# is immediately modified and the journal file immediately comes into
+# existance. To fix this test, the BEGIN is changed into a a
+# BEGIN IMMEDIATE and the INSERT is omitted.
+#
do_test io-2.6.1 {
execsql {
- BEGIN;
- INSERT INTO abc VALUES(9, randstr(1000,1000));
+ BEGIN IMMEDIATE;
+ -- INSERT INTO abc VALUES(9, randstr(1000,1000));
}
file exists test.db-journal
} {0}
@@ -213,12 +219,15 @@ do_test io-2.6.2 {
# should fail with SQLITE_CANTOPEN and the transaction rolled back.
#
file mkdir test.db-journal
- catchsql { COMMIT }
+ catchsql {
+ INSERT INTO abc VALUES(9, randstr(1000,1000));
+ COMMIT
+ }
} {1 {unable to open database file}}
do_test io-2.6.3 {
file delete -force test.db-journal
catchsql { COMMIT }
-} {1 {cannot commit - no transaction is active}}
+} {0 {}}
do_test io-2.6.4 {
execsql { SELECT * FROM abc }
} {1 2 3 4 5 6 7 8}
« no previous file with comments | « third_party/sqlite/src/test/intarray.test ('k') | third_party/sqlite/src/test/ioerr.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698