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

Unified Diff: third_party/sqlite/src/test/tkt-9d68c883.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-94c04eaadb.test ('k') | third_party/sqlite/src/test/tkt-b351d95f9.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-9d68c883.test
diff --git a/third_party/sqlite/src/test/tkt-9d68c883.test b/third_party/sqlite/src/test/tkt-9d68c883.test
new file mode 100644
index 0000000000000000000000000000000000000000..18dc6ccd67fd6b26c371ade9ae09064a9c88ab0f
--- /dev/null
+++ b/third_party/sqlite/src/test/tkt-9d68c883.test
@@ -0,0 +1,53 @@
+# 2010 April 10
+#
+# 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 tests that bug 9d68c883132c8e9ffcd5b0c148c990807b5df1b7
+# is fixed.
+#
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+do_test tkt-9d68c88-1.1 {
+ execsql {
+ PRAGMA page_size = 1024;
+ PRAGMA auto_vacuum = 2;
+ CREATE TABLE t3(x);
+ CREATE TABLE t4(x);
+ CREATE TABLE t5(x);
+ INSERT INTO t5 VALUES(randomblob(1500));
+ CREATE TABLE t7(x);
+ CREATE TABLE t8(x);
+ }
+} {}
+
+
+for {set i 0} {$i < 100} {incr i} {
+ db close
+ sqlite3_simulate_device -sectorsize 8192
+ sqlite3 db test.db -vfs devsym
+
+ do_test tkt-9d68c88-2.$i {
+ execsql {
+ BEGIN;
+ DELETE FROM t5;
+ INSERT INTO t8 VALUES('hello world');
+ }
+
+ sqlite3_memdebug_fail $i -repeat 0
+ catchsql { DROP TABLE t7; }
+ sqlite3_memdebug_fail -1
+
+ catchsql { ROLLBACK }
+ execsql { PRAGMA integrity_check }
+ } {ok}
+}
+
+finish_test
« no previous file with comments | « third_party/sqlite/src/test/tkt-94c04eaadb.test ('k') | third_party/sqlite/src/test/tkt-b351d95f9.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698