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

Unified Diff: third_party/sqlite/src/test/main.test

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 5bbc52b84509b901f460459c6e63ff807b81e5f6..3f35afe20ce1661d318633a7cbeef821ad2a5491 100644
--- a/third_party/sqlite/src/test/main.test
+++ b/third_party/sqlite/src/test/main.test
@@ -514,5 +514,25 @@ if {$::tcl_platform(platform)=="unix"
} {1 {no such vfs: async}}
}
}
+
+# Print the version number so that it can be picked up by releasetest.tcl.
+#
+puts [db one {SELECT 'VERSION: ' ||
+ sqlite_version() || ' ' ||
+ sqlite_source_id();}]
+
+# Do deliberate failures if the TEST_FAILURE environment variable is set.
+# This is done to verify that failure notifications are detected by the
+# releasetest.tcl script, or possibly by other scripts involved in automatic
+# testing.
+#
+if {[info exists ::env(TEST_FAILURE)]} {
+ set res 123
+ if {$::env(TEST_FAILURE)==0} {set res 234}
+ do_test main-99.1 {
+ bad_behavior $::env(TEST_FAILURE)
+ set x 123
+ } $res
+}
finish_test
« 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