summaryrefslogtreecommitdiff
path: root/test/misc7.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/misc7.test')
-rw-r--r--test/misc7.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/misc7.test b/test/misc7.test
index 9dee327..146dca0 100644
--- a/test/misc7.test
+++ b/test/misc7.test
@@ -151,6 +151,12 @@ db2 close
# Test that nothing goes horribly wrong when attaching a database
# after the omit_readlock pragma has been exercised.
#
+# Note: The PRAGMA omit_readlock was an early hack to disable the
+# fcntl() calls for read-only databases so that read-only databases could
+# be read on broken NFS systems. That pragma has now been removed.
+# (Use the unix-none VFS as a replacement, if needed.) But these tests
+# do not really depend on omit_readlock, so we left them in place.
+#
do_test misc7-7.1 {
forcedelete test2.db
forcedelete test2.db-journal
@@ -477,7 +483,7 @@ do_test misc7-20.1 {
# Try to open a really long file name.
#
do_test misc7-21.1 {
- set zFile [file join [pwd] "[string repeat abcde 104].db"]
+ set zFile [file join [get_pwd] "[string repeat abcde 104].db"]
set rc [catch {sqlite3 db2 $zFile} msg]
list $rc $msg
} {1 {unable to open database file}}