/ All files named "src/test_vfs.c"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for src/test_vfs.c

2020-10-02
15:15
[2cc38a79] part of check-in [dd009cd7] Fix some test code so that testfixture can build with SQLITE_OMIT_WAL defined. (check-in: [dd009cd7] user: dan branch: trunk, size: 49994)
2019-11-22
00:42
[36822d69] part of check-in [6a64fb6a] Revise the SQLITE_OPEN_NOFOLLOW so that it actually uses O_NOFOLLOW in the open() system call. This backs out the SQLITE_ACCESS_SYMLINK value but adds the new SQLITE_OK_SYMLINK return code from the xFullPathname method of sqlite3_vfs when that routine resolves symbolic links. O_NOFOLLOW is always included in open() system calls for journal files. (check-in: [6a64fb6a] user: drh branch: trunk, size: 49826)
2019-11-21
17:14
[a10a2a7c] part of check-in [2d53a30c] Fix a recently introduced memory leak in the test code in test_vfs.c. (check-in: [2d53a30c] user: dan branch: trunk, size: 49897)
2019-11-20
16:10
[323ab271] part of check-in [0d1055a5] Fix a use-after-free problem in the test suite. No changes to production code. (check-in: [0d1055a5] user: dan branch: trunk, size: 49897)
2019-11-18
17:46
[cd65c660] part of check-in [cb79c828] Add support for SQLITE_OPEN_NOFOLLOW. (check-in: [cb79c828] user: drh branch: trunk, size: 49821)
2019-05-10
20:44
[32618cbd] part of check-in [a194e536] Add tests for the RBU module. (check-in: [a194e536] user: dan branch: trunk, size: 49750)
2019-04-05
16:52
[0868f1d4] part of check-in [8b5a621e] In the test_vfs.c VFS, if a Tcl xWrite script returns "SQLITE_OMIT", silently omit the write() call. (check-in: [8b5a621e] user: dan branch: trunk, size: 49642)
2018-12-26
17:49
[c6c6a58f] part of check-in [14a64df3] Add a few more test cases to walvfs.test. (check-in: [14a64df3] user: dan branch: trunk, size: 49567)
2018-12-24
18:51
[4c02cd84] part of check-in [d697f6f3] Add test cases to test file walvfs.test. (check-in: [d697f6f3] user: dan branch: trunk, size: 49451)
15:15
[9a53b402] part of check-in [606b1ead] Merge latest trunk with this branch. (check-in: [606b1ead] user: dan branch: mutexfree-shmlock, size: 48144)
2018-12-22
20:32
[4e31a7b9] part of check-in [62314851] Improve the coverage of wal.c provided by the "coverage-wal" test permutation. (check-in: [62314851] user: dan branch: trunk, size: 46600)
2018-12-06
18:58
[194b8e78] part of check-in [8f4cb9dd] Experiment with using an atomic CPU primitive instead of a mutex for intra-process locking with the unix-excl VFS. (check-in: [8f4cb9dd] user: dan branch: mutexfree-shmlock, size: 48095)
2018-07-14
20:25
[112f1f92] part of check-in [1c41250f] If an SQLITE_IOERR error is encountered as part of an atomic commit on an F2FS file-system, retry the commit in legacy journal mode. (check-in: [1c41250f] user: dan branch: exp-retry-atomic-commit, size: 46551)
2016-07-28
17:11
[f0186261] part of check-in [f2f1323c] Make sure the SQLITE_TCLAPI macro is always defined and use it for all callback functions that must interface with the Tcl C API. (check-in: [f2f1323c] user: mistachkin branch: callbackConv, size: 45751)
14:37
[2edd39d4] part of check-in [e8be3dfe] Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention. (check-in: [e8be3dfe] user: mistachkin branch: callbackConv, size: 45709)
2016-04-14
13:16
[4d02f38b] part of check-in [7ee570e7] Since the return value of sqlite3OsClose() is always ignored, we might as well make it "void" instead of "int", and thereby save 50 bytes in the compiled binary. (check-in: [7ee570e7] user: drh branch: trunk, size: 45634)
2015-04-19
21:43
[3b65d42e] part of check-in [d05becd8] Fix harmless compiler warnings seen with MSVC 2015. (check-in: [d05becd8] user: mistachkin branch: vsix2015, size: 45642)
2015-03-17
16:01
[b7e6831e] part of check-in [e22dde18] Add a test for the change on this branch. (check-in: [e22dde18] user: dan branch: wal-blocking-lock, size: 45658)
2015-01-19
00:35
[5a14c63d] part of check-in [10321910] Eliminate all use of sprintf(), strcpy() and strcat() from test logic because OpenBSD hates those functions. (check-in: [10321910] user: drh branch: trunk, size: 45616)
2015-01-12
19:59
[8ee7be45] part of check-in [44375a34] Silence some harmless uninitialized local variable warnings. (check-in: [44375a34] user: mistachkin branch: msvcW4, size: 45581)
2014-05-07
15:09
[f84075a3] part of check-in [19d56cba] Add test cases and documentation for the nolock and immutable query parameters. (check-in: [19d56cba] user: drh branch: win32-none, size: 45573)
2013-07-29
15:54
[e72f555e] part of check-in [c0809b5e] Comment and preprocessor macro cleanup. (check-in: [c0809b5e] user: drh branch: trunk, size: 44197)
2013-07-06
17:57
[12d9931f] part of check-in [0ae7e75b] Drop any existing mapping of the database file when exiting the pager "error state", as it may at this point be too large for the database file. Do not invoke file-control MMAP_SIZE if the database file handle does not support xFetch and xUnfetch (on the grounds that xUnfetch(0) calls to invalidate the mapping cannot be made). (check-in: [0ae7e75b] user: dan branch: trunk, size: 44180)
2013-04-05
20:40
[8e6087a8] part of check-in [b095e2cd] Improve the code coverage of "permutations.test coverage-pager". (check-in: [b095e2cd] user: dan branch: trunk, size: 43386)
2013-02-23
18:58
[fb16b2d9] part of check-in [ccab94c1] Enhancements to test scripts. No code changes. (check-in: [ccab94c1] user: dan branch: incr-vacuum-opt, size: 43146)
2012-08-06
18:50
[c6260ef2] part of check-in [d045f8b2] When reusing pages as part of creating a new index, allocate the leaves from each free-list trunk page in ascending order, instead of trying to maximize localization for each individual allocation. This increases the chance that pages will be written to disk in ascending order by a large CREATE INDEX statement, improving overall performance. (check-in: [d045f8b2] user: dan branch: sorter-coalesce-writes, size: 43006)
2012-07-17
14:37
[da6d0d98] part of check-in [e4163596] Ensure that there is always at least one aReadMark slot usable by an unprivileged reader while a checkpoint is running. Also, if one or more transactions are recovered from a log file, initialize one of the aReadMark slots to contain mxFrame as part of the recovery process. (check-in: [e4163596] user: dan branch: trunk, size: 42974)
2012-04-19
18:04
[9d934e11] part of check-in [3281972e] Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also in tclsqlite.c and in the FTS4 module. (check-in: [3281972e] user: drh branch: trunk, size: 42253)
2012-02-22
20:08
[73f46bd9] part of check-in [c81fc40b] Move test logic for SQLITE_FCNTL_PRAGMA out of os_unix.c and into test_vfs.c. (check-in: [c81fc40b] user: drh branch: file-control-pragma, size: 42233)
19:56
[37d523ce] part of check-in [56436181] If the SQLITE_FCNTL_PRAGMA file-control returns anything other than SQLTIE_NOTFOUND and SQLITE_OK, then treat the result as an error. (check-in: [56436181] user: drh branch: file-control-pragma, size: 42099)
2011-12-23
01:04
[07157a0b] part of check-in [6191c5e4] Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE. The query parameter used to control this device characteristic is now "psow". (check-in: [6191c5e4] user: drh branch: statvfs, size: 41648)
2011-12-19
00:31
[b241a08b] part of check-in [41891b23] Some fixes to the test suite so that it works with ZERO_DAMAGE set to true. Still lots more problems remain. (check-in: [41891b23] user: drh branch: statvfs, size: 41528)
2011-12-17
19:49
[01d5732a] part of check-in [a0be6ea4] Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Use this device characteristic to reduce the required work in journaling. A side effect is that this changes the default page exists back to 1024 even with the use of statvfs(). (check-in: [a0be6ea4] user: drh branch: statvfs, size: 41516)
2011-11-12
03:17
[27b7d9de] part of check-in [76dec8aa] Make sure to flag benign malloc failures in the Windows VFS as such. Expand use of the DO_OS_MALLOC_TEST to cover the VFS functions that can now return an out of memory error. Support an experimental --match option to the test suite that will run only those tests matching the specified pattern. (check-in: [76dec8aa] user: mistachkin branch: winSyscall, size: 41453)
2011-08-26
17:17
[367e050e] part of check-in [41b5f869] Cherrypick the recursion fix to test_vfs.c from [065e5a5ea4f82]. Also fix the nan.test module to handle upper/lower case changes in TCL. (check-in: [41b5f869] user: drh branch: branch-3.7.2, size: 39824)
2011-08-12
11:59
[b0baec98] part of check-in [87a15917] Add tests to improve coverage of vdbesort.c. (check-in: [87a15917] user: dan branch: experimental, size: 41245)
2011-06-23
01:07
[956cb3f5] part of check-in [07884cc2] Remove unused variables from test_vfs.c (check-in: [07884cc2] user: drh branch: trunk, size: 40759)
2011-06-22
10:37
[1d82aee9] part of check-in [065e5a5e] Modify the implementation of the test code in test_vfs.c so that test VFS objects may be invoked recursively. (check-in: [065e5a5e] user: dan branch: trunk, size: 40785)
2011-05-23
18:37
[e7855568] part of check-in [a65d043a] Minor cleanups to the header comments on various test_*.c file, to make the suitable for programmer-level documentation. (check-in: [a65d043a] user: drh branch: trunk, size: 41519)
2011-04-23
19:06
[0ac5b2e3] part of check-in [2af51f85] Test that it is now possible to use different VFSs for two databases attached to a single handle. (check-in: [2af51f85] user: dan branch: uri, size: 41526)
2011-04-22
19:37
[b6bab738] part of check-in [b8a8132e] Add the start of the "uri-filenames" feature. (check-in: [b8a8132e] user: dan branch: uri, size: 41111)
2011-01-14
11:51
[2ed8853c] part of check-in [772a3845] Fix a bug in test code (test_vfs.c). (check-in: [772a3845] user: dan branch: trunk, size: 40694)
2010-11-01
17:38
[e10fcca7] part of check-in [8dd5c691] If a database file with the WAL flag set is opened in exclusive-locking mode, use heap memory to store the wal-index instead of shared-memory. (check-in: [8dd5c691] user: dan branch: trunk, size: 40649)
2010-08-12
02:41
[702e5263] part of check-in [45362437] Increase the maximum page size from 32k to 64k. (check-in: [45362437] user: drh branch: trunk, size: 40584)
2010-07-13
18:44
[7e291f85] part of check-in [f4780bde] Changes so that the xShmOpen VFS method is no longer required. Its job can be done by the first call to xShmMap. Rename xShmClose to xShmUnmap. (check-in: [f4780bde] user: dan branch: experimental, size: 40584)
2010-07-03
17:13
[bea0f0bd] part of check-in [51ec0e54] Remove the unused xRename() method from the sqlite3_vfs object. Add better documentation on the xCurrentTimeInt64() method. (check-in: [51ec0e54] user: drh branch: trunk, size: 40525)
2010-07-02
19:04
[f7e4d92b] part of check-in [336ce7d2] Fix a bug in test_vfs.c causing an assert to fail. Changes to test code only. (check-in: [336ce7d2] user: dan branch: mistake, size: 40481)
2010-07-01
15:09
[88ca1326] part of check-in [a8f6341d] Add pager test cases. Change a condition in pager.c to NEVER(). (check-in: [a8f6341d] user: dan branch: trunk, size: 40463)
2010-06-29
10:30
[2291fd22] part of check-in [008513ee] Add tests to pager1.test and pagerfault.test. (check-in: [008513ee] user: dan branch: trunk, size: 40001)
2010-06-25
19:09
[90d51963] part of check-in [bfd563c4] Further test cases for pager1.test and pagerfault.test. (check-in: [bfd563c4] user: dan branch: trunk, size: 38427)
2010-06-23
19:27
[d001a4e6] part of check-in [3e9680c4] Add test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in pager.c that this hits. (check-in: [3e9680c4] user: dan branch: trunk, size: 36960)
2010-06-21
18:29
[f1b4398e] part of check-in [cc9ddae6] Add test cases to pager1.test and pager2.test. (check-in: [cc9ddae6] user: dan branch: trunk, size: 36849)
2010-06-19
18:12
[9ba0bb22] part of check-in [5a5ff4e3] Change the name of IOCAP_SAFE_DELETE to IOCAP_UNDELETABLE_WHEN_OPEN. Have the xDeviceCharacteristics() method of the win32 VFS return this flag. (check-in: [5a5ff4e3] user: dan branch: experimental, size: 36775)
17:26
[abdf6881] part of check-in [f5df83fd] Add tests to pager1.test and pagerfault.test. (check-in: [f5df83fd] user: dan branch: experimental, size: 36635)
2010-06-16
19:04
[687ba8db] part of check-in [bede8c8a] Experimental change: On systems where it is not possible to unlink a file while one or more processes has it open (i.e. not unix), avoid closing the journal file each time the database is unlocked and reopening it at the start of each transaction. (check-in: [bede8c8a] user: dan branch: experimental, size: 35620)
10:55
[001c34e0] part of check-in [6c5c04ee] Fix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnlock method. (check-in: [6c5c04ee] user: dan branch: trunk, size: 31515)
2010-06-14
18:01
[db0f5c7c] part of check-in [58dfd83d] Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems to fit in there logically. (check-in: [58dfd83d] user: drh branch: trunk, size: 31135)
14:07
[8e125e01] part of check-in [fc0cabc1] Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations. (check-in: [fc0cabc1] user: dan branch: experimental, size: 31249)
07:53
[15bddcdd] part of check-in [37b26d12] Add some fault-injection tests to improve coverage. (check-in: [37b26d12] user: dan branch: experimental, size: 32245)
2010-06-12
12:02
[c3643e98] part of check-in [eade8bc2] Fix some problems with handling IO errors on the experimental branch. (check-in: [eade8bc2] user: dan branch: experimental, size: 31601)
2010-06-11
19:04
[b83206d2] part of check-in [ca68472d] Experimental change to the xShmXXX parts of the VFS interface. (check-in: [ca68472d] user: dan branch: experimental, size: 31595)
2010-06-05
11:53
[d329e3ea] part of check-in [f9d4ae0e] Add extra coverage test cases for wal.c. No changes to production code. (check-in: [f9d4ae0e] user: dan branch: trunk, size: 31172)
2010-06-04
11:56
[d3338794] part of check-in [b813233d] If an attempt to sync the database file as part of a checkpoint fails, do not update the shared "nBackfill" variable. Otherwise, another process could wrap the log and overwrite content before it is synced into the database. (check-in: [b813233d] user: dan branch: trunk, size: 30028)
10:37
[6203bc7d] part of check-in [02c4040c] Fix a problem where an SQLITE_BUSY in the checkpoint code was being treated as an IO error (abandoning, instead of just limiting, the checkpoint). (check-in: [02c4040c] user: dan branch: trunk, size: 28824)
2010-06-03
19:10
[0f0242f2] part of check-in [df7d5989] Fix another problem in test_vfs.c. (check-in: [df7d5989] user: dan branch: trunk, size: 28791)
18:20
[dd213424] part of check-in [fcbf7cf1] Have test_vfs.c simulate IO errors in xShmLock. (check-in: [fcbf7cf1] user: dan branch: trunk, size: 28838)
09:25
[bae03f62] part of check-in [ac0de2f3] Enhancements to test_vfs.c and walfault.test. (check-in: [ac0de2f3] user: dan branch: trunk, size: 28733)
2010-06-01
19:15
[fe1eda8d] part of check-in [716d99f3] Changes to the way faults are injected into xShmXXX VFS calls. (check-in: [716d99f3] user: dan branch: trunk, size: 26283)
2010-05-30
19:55
[4f4f121f] part of check-in [ef3ba7a1] Initial code for incremental checkpoint in WAL mode. This check-in compiles on unix and runs as long as you do not engage WAL mode. WAL mode crashes and burns. Consider this check-in a baseline implementation for getting the new capability up and running. (check-in: [ef3ba7a1] user: drh branch: wal-incr-ckpt, size: 23552)
2010-05-20
23:51
[a2d320ea] part of check-in [1bd011c9] Add a new xShmBarrier method to the VFS - a shared-memory fence operation. Implement the same in both unix and win32. Use it to make the WAL subsystem more robust. (check-in: [1bd011c9] user: drh branch: trunk, size: 23718)
2010-05-18
13:27
[7fc397aa] part of check-in [0a678790] Mark the shared-memory in the WAL implementation as volatile. (check-in: [0a678790] user: drh branch: trunk, size: 23298)
2010-05-13
06:19
[3601f9b6] part of check-in [25e72f81] Modify the VFS in test_vfs.c to match the refactoring of the xShmXXX methods. (check-in: [25e72f81] user: dan branch: wal-refactor, size: 23280)
2010-05-12
18:01
[6e828b42] part of check-in [2b00152c] Refactoring the VFS-SHM methods used by WAL. This version compiles and runs non-WAL test cases but crashes and burns on wal.test. (check-in: [2b00152c] user: drh branch: wal-refactor, size: 23094)
2010-05-07
09:43
[c1e13b5f] part of check-in [8b3b5ab8] Test another IO error case in wal.c. (check-in: [8b3b5ab8] user: dan branch: trunk, size: 22604)
2010-05-06
18:04
[72b8ad1a] part of check-in [637f51dd] Only pass -1 as the size parameter to xShmGet when the caller does not care what size mapping is returned. Only call xShmSize when the underlying allocation (not the mapping) should be resized. (check-in: [637f51dd] user: dan branch: trunk, size: 22602)
15:56
[a6a8b594] part of check-in [98a9713e] Further coverage tests. (check-in: [98a9713e] user: dan branch: trunk, size: 22205)
12:15
[e38d3619] part of check-in [f0fcb9c9] Add tests for some lock-contention cases. (check-in: [f0fcb9c9] user: dan branch: trunk, size: 22176)
07:43
[43ae46c9] part of check-in [fbbcacb1] Add tests for handling errors returned by xShm VFS methods. (check-in: [fbbcacb1] user: dan branch: trunk, size: 22136)
2010-05-05
19:04
Added: [4e84d17c] part of check-in [72663123] Test the handling of errors returned by the xShmXXX() APIs. (check-in: [72663123] user: dan branch: trunk, size: 22013)