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

Unified Diff: third_party/sqlite/src/test/jrnlmode3.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/jrnlmode2.test ('k') | third_party/sqlite/src/test/like.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/jrnlmode3.test
diff --git a/third_party/sqlite/src/test/jrnlmode3.test b/third_party/sqlite/src/test/jrnlmode3.test
index 7a6f4c3adc4963ff95412a0e0a559708d34e4399..6ae1346e324bfd0521380af63d1a81371d74da0d 100644
--- a/third_party/sqlite/src/test/jrnlmode3.test
+++ b/third_party/sqlite/src/test/jrnlmode3.test
@@ -45,7 +45,7 @@ do_test jrnlmode3-1.2 {
ROLLBACK;
SELECT * FROM t1;
}
-} {1 2}
+} {1}
db close
file delete -force test.db test.db-journal
@@ -67,7 +67,7 @@ do_test jrnlmode3-2.2 {
ROLLBACK;
SELECT * FROM t1;
}
-} {1 2}
+} {1}
# Test cases to verify that we can move from any journal_mode
# to any other, as long as we are not in a transaction. Verify
@@ -112,15 +112,14 @@ foreach fromjmode $all_journal_modes {
db eval "PRAGMA journal_mode=$tojmode"
} $fromjmode
- # Rollback the transaction. Verify that the rollback occurred
- # if journal_mode!=OFF.
+ # Rollback the transaction.
#
do_test jrnlmode3-3.$cnt.4 {
db eval {
ROLLBACK;
SELECT * FROM t1;
}
- } [expr {$fromjmode=="off"?$cnt:""}]
+ } {}
# Now change the journal mode again. This time the new mode
# should take.
@@ -143,7 +142,7 @@ foreach fromjmode $all_journal_modes {
db eval {
SELECT * FROM t1;
}
- } [expr {$tojmode=="off"?"1":""}]
+ } {}
}
}
« no previous file with comments | « third_party/sqlite/src/test/jrnlmode2.test ('k') | third_party/sqlite/src/test/like.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698