summaryrefslogtreecommitdiff
path: root/test/tkt3457.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/tkt3457.test')
-rw-r--r--test/tkt3457.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/tkt3457.test b/test/tkt3457.test
index 7b9a1b3..0475741 100644
--- a/test/tkt3457.test
+++ b/test/tkt3457.test
@@ -62,6 +62,14 @@ do_test tkt3457-1.1 {
execsql COMMIT
} {}
+# Disable fchmod to make sure SQLite itself does not try to change the
+# permission bits on us
+#
+catch {
+ test_syscall install fchmod
+ test_syscall fault 1 1
+}
+
do_test tkt3457-1.2 {
forcecopy bak.db-journal test.db-journal
file attributes test.db-journal -permissions ---------
@@ -84,4 +92,10 @@ do_test tkt3457-1.5 {
catchsql { SELECT * FROM t1 }
} {0 {1 2 3 4 5 6}}
+# Reenable fchmod
+catch {
+ test_syscall uninstall
+ test_syscall fault 0 0
+}
+
finish_test