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

Unified Diff: third_party/sqlite/src/test/tkt-5ee23731f.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-5e10420e8d.test ('k') | third_party/sqlite/src/test/tkt-752e1646fc.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-5ee23731f.test
diff --git a/third_party/sqlite/src/test/tkt-5ee23731f.test b/third_party/sqlite/src/test/tkt-5ee23731f.test
new file mode 100644
index 0000000000000000000000000000000000000000..61c99741791f88b8876454e8ce7af79ef91add7b
--- /dev/null
+++ b/third_party/sqlite/src/test/tkt-5ee23731f.test
@@ -0,0 +1,42 @@
+# 2009 October 13
+#
+# 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 [5ee23731f15] has been
+# fixed.
+#
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+do_test tkt-5ee237-1.1 {
+ db close
+ file delete -force test.db
+ sqlite3 db test.db
+ db eval {
+ CREATE TABLE t1(x UNIQUE);
+ INSERT INTO t1 VALUES(1);
+ INSERT INTO t1 VALUES(2);
+ INSERT INTO t1 SELECT x+2 FROM t1;
+ INSERT INTO t1 SELECT x+4 FROM t1;
+ INSERT INTO t1 SELECT x+8 FROM t1;
+ }
+ db close
+ sqlite3 db test.db -readonly 1
+ set rc [catch {
+ db eval {SELECT rowid, x FROM t1 ORDER BY x} {
+ db eval {UPDATE t1 SET x=x+1 WHERE rowid=:rowid}
+ }
+ } msg]
+ lappend rc $msg
+} {1 {attempt to write a readonly database}}
+
+finish_test
« no previous file with comments | « third_party/sqlite/src/test/tkt-5e10420e8d.test ('k') | third_party/sqlite/src/test/tkt-752e1646fc.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698