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

Unified Diff: third_party/sqlite/src/test/tkt-5d863f876e.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/tkt-4a03edc4c8.test ('k') | third_party/sqlite/src/test/tkt-5e10420e8d.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/tkt-5d863f876e.test
diff --git a/third_party/sqlite/src/test/tkt-5d863f876e.test b/third_party/sqlite/src/test/tkt-5d863f876e.test
new file mode 100644
index 0000000000000000000000000000000000000000..0a9017de117de9325ee30d69723ac0c164d41335
--- /dev/null
+++ b/third_party/sqlite/src/test/tkt-5d863f876e.test
@@ -0,0 +1,53 @@
+# 2011 January 15
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#***********************************************************************
+# This file implements regression tests for SQLite library.
+#
+# This file implements tests to verify that ticket [5d863f876e] has been
+# fixed.
+#
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+source $testdir/lock_common.tcl
+
+do_multiclient_test tn {
+ do_test $tn.1 {
+ sql1 {
+ CREATE TABLE t1(a, b);
+ CREATE INDEX i1 ON t1(a, b);
+ INSERT INTO t1 VALUES(1, 2);
+ INSERT INTO t1 VALUES(3, 4);
+ PRAGMA journal_mode = WAL;
+ VACUUM;
+ PRAGMA journal_mode = DELETE;
+ }
+ } {wal delete}
+
+ do_test $tn.2 {
+ sql2 { SELECT * FROM t1 }
+ } {1 2 3 4}
+
+ do_test $tn.3 {
+ sql1 {
+ INSERT INTO t1 VALUES(5, 6);
+ PRAGMA journal_mode = WAL;
+ VACUUM;
+ PRAGMA journal_mode = DELETE;
+ }
+ } {wal delete}
+
+ do_test $tn.2 {
+ sql2 { PRAGMA integrity_check }
+ } {ok}
+}
+
+
+finish_test
« no previous file with comments | « third_party/sqlite/src/test/tkt-4a03edc4c8.test ('k') | third_party/sqlite/src/test/tkt-5e10420e8d.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698