aboutsummaryrefslogtreecommitdiff
path: root/test/ctime.test
diff options
context:
space:
mode:
authordan <dan@noemail.net>2016-10-21 10:09:22 +0000
committerdan <dan@noemail.net>2016-10-21 10:09:22 +0000
commitceb97c110715008c71e79d6f84936c42e10501b8 (patch)
tree4d298fc9d9c664f59f958f432bb59e008df2572b /test/ctime.test
parent86873baa5887761901e78546f7bdaa684d68cfff (diff)
downloadsqlite-ceb97c110715008c71e79d6f84936c42e10501b8.tar.gz
sqlite-ceb97c110715008c71e79d6f84936c42e10501b8.zip
If SQLITE_DIRECT_OVERFLOW_READ is defined at compile time, add "DIRECT_OVERFLOW_READ" to the list of symbols returned by "PRAGMA compile_options".
FossilOrigin-Name: b7d9727bff2e840af4b090872c991693e78e6076
Diffstat (limited to 'test/ctime.test')
-rw-r--r--test/ctime.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ctime.test b/test/ctime.test
index efdf17085..8ed556358 100644
--- a/test/ctime.test
+++ b/test/ctime.test
@@ -224,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