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

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

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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/csv01.test ('k') | third_party/sqlite/src/test/cursorhint2.test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/test/ctime.test
diff --git a/third_party/sqlite/src/test/ctime.test b/third_party/sqlite/src/test/ctime.test
index e4cb156168be57f9208e8bba8f247cbd740dac6d..8ed556358ff8a2f5b7d53e7fe8cc33b048daf762 100644
--- a/third_party/sqlite/src/test/ctime.test
+++ b/third_party/sqlite/src/test/ctime.test
@@ -196,9 +196,10 @@ set tc 1
foreach opt $opts {
do_test ctime-2.5.$tc {
set N [ expr {$tc-1} ]
- set ans1 [ catchsql {
+ set ans1 [catch {db one {
SELECT sqlite_compileoption_get($N);
- } ]
+ }} msg]
+ lappend ans1 $msg
set ans2 [ catchsql {
SELECT sqlite_compileoption_used($opt);
} ]
@@ -223,5 +224,17 @@ do_test ctime-2.5.$tc {
} ]
} {0 {{}}}
+#--------------------------------------------------------------------------
+# Test that SQLITE_DIRECT_OVERFLOW_READ is reflected in the output of
+# "PRAGMA compile_options".
+#
+ifcapable direct_read {
+ set res 1
+} else {
+ set res 0
+}
+do_test ctime-3.0.1 {
+ expr [lsearch [db eval {PRAGMA compile_options}] DIRECT_OVERFLOW_READ]>=0
+} $res
finish_test
« no previous file with comments | « third_party/sqlite/src/test/csv01.test ('k') | third_party/sqlite/src/test/cursorhint2.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698