/ File History
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

History of src/test_vfs.c

2019-05-10
20:44
Add tests for the RBU module. file: [32618cbd] check-in: [a194e536] user: dan branch: trunk, size: 49750
2019-04-05
16:52
In the test_vfs.c VFS, if a Tcl xWrite script returns "SQLITE_OMIT", silently omit the write() call. file: [0868f1d4] check-in: [8b5a621e] user: dan branch: trunk, size: 49642
2018-12-26
17:49
Add a few more test cases to walvfs.test. file: [c6c6a58f] check-in: [14a64df3] user: dan branch: trunk, size: 49567
2018-12-24
18:51
Add test cases to test file walvfs.test. file: [4c02cd84] check-in: [d697f6f3] user: dan branch: trunk, size: 49451
15:15
Merge latest trunk with this branch. file: [9a53b402] check-in: [606b1ead] user: dan branch: mutexfree-shmlock, size: 48144
2018-12-22
20:32
Improve the coverage of wal.c provided by the "coverage-wal" test permutation. file: [4e31a7b9] check-in: [62314851] user: dan branch: trunk, size: 46600
2018-12-06
18:58
Experiment with using an atomic CPU primitive instead of a mutex for intra-process locking with the unix-excl VFS. file: [194b8e78] check-in: [8f4cb9dd] user: dan branch: mutexfree-shmlock, size: 48095
2018-07-14
20:25
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. file: [112f1f92] check-in: [1c41250f] user: dan branch: exp-retry-atomic-commit, size: 46551
2016-07-28
17:11
Make sure the SQLITE_TCLAPI macro is always defined and use it for all callback functions that must interface with the Tcl C API. file: [f0186261] check-in: [f2f1323c] user: mistachkin branch: callbackConv, size: 45751
14:37
Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention. file: [2edd39d4] check-in: [e8be3dfe] user: mistachkin branch: callbackConv, size: 45709
2016-04-14
13:16
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. file: [4d02f38b] check-in: [7ee570e7] user: drh branch: trunk, size: 45634
2015-04-19
21:43
Fix harmless compiler warnings seen with MSVC 2015. file: [3b65d42e] check-in: [d05becd8] user: mistachkin branch: vsix2015, size: 45642
2015-03-17
16:01
Add a test for the change on this branch. file: [b7e6831e] check-in: [e22dde18] user: dan branch: wal-blocking-lock, size: 45658
2015-01-19
00:35
Eliminate all use of sprintf(), strcpy() and strcat() from test logic because OpenBSD hates those functions. file: [5a14c63d] check-in: [10321910] user: drh branch: trunk, size: 45616
2015-01-12
19:59
Silence some harmless uninitialized local variable warnings. file: [8ee7be45] check-in: [44375a34] user: mistachkin branch: msvcW4, size: 45581
2014-05-07
15:09
Add test cases and documentation for the nolock and immutable query parameters. file: [f84075a3] check-in: [19d56cba] user: drh branch: win32-none, size: 45573
2013-07-29
15:54
Comment and preprocessor macro cleanup. file: [e72f555e] check-in: [c0809b5e] user: drh branch: trunk, size: 44197
2013-07-06
17:57
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). file: [12d9931f] check-in: [0ae7e75b] user: dan branch: trunk, size: 44180
2013-04-05
20:40
Improve the code coverage of "permutations.test coverage-pager". file: [8e6087a8] check-in: [b095e2cd] user: dan branch: trunk, size: 43386
2013-02-23
18:58
Enhancements to test scripts. No code changes. file: [fb16b2d9] check-in: [ccab94c1] user: dan branch: incr-vacuum-opt, size: 43146
2012-08-06
18:50
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. file: [c6260ef2] check-in: [d045f8b2] user: dan branch: sorter-coalesce-writes, size: 43006
2012-07-17
14:37
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. file: [da6d0d98] check-in: [e4163596] user: dan branch: trunk, size: 42974
2012-04-19
18:04
Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also in tclsqlite.c and in the FTS4 module. file: [9d934e11] check-in: [3281972e] user: drh branch: trunk, size: 42253
2012-02-22
20:08
Move test logic for SQLITE_FCNTL_PRAGMA out of os_unix.c and into test_vfs.c. file: [73f46bd9] check-in: [c81fc40b] user: drh branch: file-control-pragma, size: 42233
19:56
If the SQLITE_FCNTL_PRAGMA file-control returns anything other than SQLTIE_NOTFOUND and SQLITE_OK, then treat the result as an error. file: [37d523ce] check-in: [56436181] user: drh branch: file-control-pragma, size: 42099
2011-12-23
01:04
Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE. The query parameter used to control this device characteristic is now "psow". file: [07157a0b] check-in: [6191c5e4] user: drh branch: statvfs, size: 41648
2011-12-19
00:31
Some fixes to the test suite so that it works with ZERO_DAMAGE set to true. Still lots more problems remain. file: [b241a08b] check-in: [41891b23] user: drh branch: statvfs, size: 41528
2011-12-17
19:49
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(). file: [01d5732a] check-in: [a0be6ea4] user: drh branch: statvfs, size: 41516
2011-11-12
03:17
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. file: [27b7d9de] check-in: [76dec8aa] user: mistachkin branch: winSyscall, size: 41453
2011-08-26
17:17
Cherrypick the recursion fix to test_vfs.c from [065e5a5ea4f82]. Also fix the nan.test module to handle upper/lower case changes in TCL. file: [367e050e] check-in: [41b5f869] user: drh branch: branch-3.7.2, size: 39824
2011-08-12
11:59
Add tests to improve coverage of vdbesort.c. file: [b0baec98] check-in: [87a15917] user: dan branch: experimental, size: 41245
2011-06-23
01:07
Remove unused variables from test_vfs.c file: [956cb3f5] check-in: [07884cc2] user: drh branch: trunk, size: 40759
2011-06-22
10:37
Modify the implementation of the test code in test_vfs.c so that test VFS objects may be invoked recursively. file: [1d82aee9] check-in: [065e5a5e] user: dan branch: trunk, size: 40785
2011-05-23
18:37
Minor cleanups to the header comments on various test_*.c file, to make the suitable for programmer-level documentation. file: [e7855568] check-in: [a65d043a] user: drh branch: trunk, size: 41519
2011-04-23
19:06
Test that it is now possible to use different VFSs for two databases attached to a single handle. file: [0ac5b2e3] check-in: [2af51f85] user: dan branch: uri, size: 41526
2011-04-22
19:37
Add the start of the "uri-filenames" feature. file: [b6bab738] check-in: [b8a8132e] user: dan branch: uri, size: 41111
2011-01-14
11:51
Fix a bug in test code (test_vfs.c). file: [2ed8853c] check-in: [772a3845] user: dan branch: trunk, size: 40694
2010-11-01
17:38
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. file: [e10fcca7] check-in: [8dd5c691] user: dan branch: trunk, size: 40649
2010-08-12
02:41
Increase the maximum page size from 32k to 64k. file: [702e5263] check-in: [45362437] user: drh branch: trunk, size: 40584
2010-07-13
18:44
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. file: [7e291f85] check-in: [f4780bde] user: dan branch: experimental, size: 40584
2010-07-03
17:13
Remove the unused xRename() method from the sqlite3_vfs object. Add better documentation on the xCurrentTimeInt64() method. file: [bea0f0bd] check-in: [51ec0e54] user: drh branch: trunk, size: 40525
2010-07-02
19:04
Fix a bug in test_vfs.c causing an assert to fail. Changes to test code only. file: [f7e4d92b] check-in: [336ce7d2] user: dan branch: mistake, size: 40481
2010-07-01
15:09
Add pager test cases. Change a condition in pager.c to NEVER(). file: [88ca1326] check-in: [a8f6341d] user: dan branch: trunk, size: 40463
2010-06-29
10:30
Add tests to pager1.test and pagerfault.test. file: [2291fd22] check-in: [008513ee] user: dan branch: trunk, size: 40001
2010-06-25
19:09
Further test cases for pager1.test and pagerfault.test. file: [90d51963] check-in: [bfd563c4] user: dan branch: trunk, size: 38427
2010-06-23
19:27
Add test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in pager.c that this hits. file: [d001a4e6] check-in: [3e9680c4] user: dan branch: trunk, size: 36960
2010-06-21
18:29
Add test cases to pager1.test and pager2.test. file: [f1b4398e] check-in: [cc9ddae6] user: dan branch: trunk, size: 36849
2010-06-19
18:12
Change the name of IOCAP_SAFE_DELETE to IOCAP_UNDELETABLE_WHEN_OPEN. Have the xDeviceCharacteristics() method of the win32 VFS return this flag. file: [9ba0bb22] check-in: [5a5ff4e3] user: dan branch: experimental, size: 36775
17:26
Add tests to pager1.test and pagerfault.test. file: [abdf6881] check-in: [f5df83fd] user: dan branch: experimental, size: 36635
2010-06-16
19:04
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. file: [687ba8db] check-in: [bede8c8a] user: dan branch: experimental, size: 35620
10:55
Fix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnlock method. file: [001c34e0] check-in: [6c5c04ee] user: dan branch: trunk, size: 31515
2010-06-14
18:01
Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems to fit in there logically. file: [db0f5c7c] check-in: [58dfd83d] user: drh branch: trunk, size: 31135
14:07
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. file: [8e125e01] check-in: [fc0cabc1] user: dan branch: experimental, size: 31249
07:53
Add some fault-injection tests to improve coverage. file: [15bddcdd] check-in: [37b26d12] user: dan branch: experimental, size: 32245
2010-06-12
12:02
Fix some problems with handling IO errors on the experimental branch. file: [c3643e98] check-in: [eade8bc2] user: dan branch: experimental, size: 31601
2010-06-11
19:04
Experimental change to the xShmXXX parts of the VFS interface. file: [b83206d2] check-in: [ca68472d] user: dan branch: experimental, size: 31595
2010-06-05
11:53
Add extra coverage test cases for wal.c. No changes to production code. file: [d329e3ea] check-in: [f9d4ae0e] user: dan branch: trunk, size: 31172
2010-06-04
11:56
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. file: [d3338794] check-in: [b813233d] user: dan branch: trunk, size: 30028
10:37
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). file: [6203bc7d] check-in: [02c4040c] user: dan branch: trunk, size: 28824
2010-06-03
19:10
Fix another problem in test_vfs.c. file: [0f0242f2] check-in: [df7d5989] user: dan branch: trunk, size: 28791
18:20
Have test_vfs.c simulate IO errors in xShmLock. file: [dd213424] check-in: [fcbf7cf1] user: dan branch: trunk, size: 28838
09:25
Enhancements to test_vfs.c and walfault.test. file: [bae03f62] check-in: [ac0de2f3] user: dan branch: trunk, size: 28733
2010-06-01
19:15
Changes to the way faults are injected into xShmXXX VFS calls. file: [fe1eda8d] check-in: [716d99f3] user: dan branch: trunk, size: 26283
2010-05-30
19:55
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. file: [4f4f121f] check-in: [ef3ba7a1] user: drh branch: wal-incr-ckpt, size: 23552
2010-05-20
23:51
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. file: [a2d320ea] check-in: [1bd011c9] user: drh branch: trunk, size: 23718
2010-05-18
13:27
Mark the shared-memory in the WAL implementation as volatile. file: [7fc397aa] check-in: [0a678790] user: drh branch: trunk, size: 23298
2010-05-13
06:19
Modify the VFS in test_vfs.c to match the refactoring of the xShmXXX methods. file: [3601f9b6] check-in: [25e72f81] user: dan branch: wal-refactor, size: 23280
2010-05-12
18:01
Refactoring the VFS-SHM methods used by WAL. This version compiles and runs non-WAL test cases but crashes and burns on wal.test. file: [6e828b42] check-in: [2b00152c] user: drh branch: wal-refactor, size: 23094
2010-05-07
09:43
Test another IO error case in wal.c. file: [c1e13b5f] check-in: [8b3b5ab8] user: dan branch: trunk, size: 22604
2010-05-06
18:04
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. file: [72b8ad1a] check-in: [637f51dd] user: dan branch: trunk, size: 22602
15:56
Further coverage tests. file: [a6a8b594] check-in: [98a9713e] user: dan branch: trunk, size: 22205
12:15
Add tests for some lock-contention cases. file: [e38d3619] check-in: [f0fcb9c9] user: dan branch: trunk, size: 22176
07:43
Add tests for handling errors returned by xShm VFS methods. file: [43ae46c9] check-in: [fbbcacb1] user: dan branch: trunk, size: 22136
2010-05-05
19:04
Test the handling of errors returned by the xShmXXX() APIs. file: [4e84d17c] check-in: [72663123] user: dan branch: trunk, size: 22013 Added