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

Unified Diff: third_party/sqlite/src/test/main.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/lookaside.test ('k') | third_party/sqlite/src/test/malloc.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/main.test
diff --git a/third_party/sqlite/src/test/main.test b/third_party/sqlite/src/test/main.test
index 12262c1c5132555b22d34b9affc4dc058a5d35b9..dbf90410623d5a0a3397d4e7dbf1daf70d17882d 100644
--- a/third_party/sqlite/src/test/main.test
+++ b/third_party/sqlite/src/test/main.test
@@ -25,21 +25,40 @@ ifcapable {complete} {
do_test main-1.1 {
db complete {This is a test}
} {0}
-do_test main-1.2 {
+do_test main-1.2.0 {
db complete {
}
-} {1}
-do_test main-1.3 {
+} {0}
+do_test main-1.2.1 {
+ db complete {}
+} {0}
+do_test main-1.3.0 {
db complete {
-- a comment ;
}
-} {1}
-do_test main-1.4 {
+} {0}
+do_test main-1.3.1 {
+ db complete {
+ /* a comment ; */
+ }
+} {0}
+do_test main-1.4.0 {
db complete {
-- a comment ;
;
}
} {1}
+do_test main-1.4.1 {
+ db complete {
+ /* a comment ; */
+ ;
+ }
+} {1}
+do_test main-1.4.2 {
+ db complete {
+ /* a comment ; */ ;
+ }
+} {1}
do_test main-1.5 {
db complete {DROP TABLE 'xyz;}
} {0}
@@ -279,15 +298,17 @@ ifcapable {trigger} {
# Try to open a database with a corrupt database file.
#
-do_test main-2.0 {
- catch {db close}
- file delete -force test.db
- set fd [open test.db w]
- puts $fd hi!
- close $fd
- set v [catch {sqlite3 db test.db} msg]
- if {$v} {lappend v $msg} {lappend v {}}
-} {0 {}}
+if {[permutation] == ""} {
+ do_test main-2.0 {
+ catch {db close}
+ file delete -force test.db
+ set fd [open test.db w]
+ puts $fd hi!
+ close $fd
+ set v [catch {sqlite3 db test.db} msg]
+ if {$v} {lappend v $msg} {lappend v {}}
+ } {0 {}}
+}
# Here are some tests for tokenize.c.
#
« no previous file with comments | « third_party/sqlite/src/test/lookaside.test ('k') | third_party/sqlite/src/test/malloc.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698