summaryrefslogtreecommitdiffstats
path: root/test/zeroblobfault.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/zeroblobfault.test')
-rw-r--r--test/zeroblobfault.test28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/zeroblobfault.test b/test/zeroblobfault.test
new file mode 100644
index 0000000..0ae5bea
--- /dev/null
+++ b/test/zeroblobfault.test
@@ -0,0 +1,28 @@
+# 2021 November 8
+#
+# 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.
+#
+#***********************************************************************
+#
+#
+
+set testdir [file dirname $argv0]
+source $testdir/tester.tcl
+
+set testprefix zeroblobfault
+set quoted_res [db one { SELECT quote(zeroblob(2000)) }]
+
+do_faultsim_test 1 -prep {
+ sqlite3 db test.db
+} -body {
+ execsql { SELECT quote(zeroblob(2000)) }
+} -test {
+ faultsim_test_result [list 0 $::quoted_res]
+}
+
+finish_test