aboutsummaryrefslogtreecommitdiff
path: root/src/test_vfs.c
Commit message (Collapse)AuthorAge
* Test app/script patches from Jan Nijtmans for cygwin. Add/replace many more ↵stephan2025-03-08
| | | | | sentinel arguments for TCL variadic functions which specifically need a NULL trailing argument. With this, 'make test' on cygwin runs to completion for me, with 134 of 329227 tests failing. MSC build fails the same 13 tests which fail for me in trunk. FossilOrigin-Name: 84d8fcfca19cd183d05a702d0eb1742bfae462d3383a3db72741a48cefac1058
* Cygwin-centric fixes from Jan Nijtmans.stephan2025-03-06
| | | FossilOrigin-Name: 205979813c7300debb5f1ba270583ef2f08e069d6d01865b5910702889a5c1ed
* Enhance tests to ensure that blocking locks, and not calls to xSleep(), are ↵dan2024-12-09
| | | | | being used by SQLITE_ENABLE_SETLK_TIMEOUT builds when they should be. FossilOrigin-Name: c892242bb642f7a6a961e310ed8b4f1e140f8ee32c00f50021c6011c6e7e1476
* First attempt at getting the build to work with Tcl 9.0.drh2024-07-30
| | | FossilOrigin-Name: 6e5bb48a74d63fb8c30528f0005d1763cd2dbb882abf86baf1565721e6bfcf84
* Fix a race condition during hot-journal rollback that could theoretically ↵dan2023-01-31
| | | | | cause spurious corruption errors. FossilOrigin-Name: 20ea53ddf590a9dd19501fabd2bfdb9c10b5eb265cd2995bdb335769c936c763
* Fix some test code so that testfixture can build with SQLITE_OMIT_WAL defined.dan2020-10-02
| | | FossilOrigin-Name: dd009cd7aec3598e930806907601f4f0f9b0021ea99fa6c5e29e88f1246066ed
* Revise the SQLITE_OPEN_NOFOLLOW so that it actually uses O_NOFOLLOW in thedrh2019-11-22
| | | | | | | | 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. FossilOrigin-Name: 6a64fb6a2da6c98f1e87b55ad5689967e1db4eae2e08345471d95e28cd567e0f
* Fix a recently introduced memory leak in the test code in test_vfs.c.dan2019-11-21
| | | FossilOrigin-Name: 2d53a30cc23e53033af8e8666457654db5dcc453ed6cd176ce1d0bff4f528159
* Fix a use-after-free problem in the test suite. No changes to production code.dan2019-11-20
| | | FossilOrigin-Name: 0d1055a5da8274a59f35170b1f9469597ce4c5a4c5e851a1b81d3be2ccd32871
* Add support for SQLITE_OPEN_NOFOLLOW.drh2019-11-18
| | | FossilOrigin-Name: cb79c828496a703f1410f61458ebc1e15a92a63412b36f51945b2b5a32ec6e88
* Add tests for the RBU module.dan2019-05-10
| | | FossilOrigin-Name: a194e53670e25a48c2bb51b54755abff88ed6ae2596c5858fb4aac16cb452bdf
* In the test_vfs.c VFS, if a Tcl xWrite script returns "SQLITE_OMIT", ↵dan2019-04-05
| | | | | silently omit the write() call. FossilOrigin-Name: 8b5a621e2ee3bb9d7d4f905217872e7e59153be9477aaa626cea287d56710b5b
* Add a few more test cases to walvfs.test.dan2018-12-26
| | | FossilOrigin-Name: 14a64df36efe0dc36795311d58385f9c65dc465b214059e07c2ee6b95ea99c87
* Add test cases to test file walvfs.test.dan2018-12-24
| | | FossilOrigin-Name: d697f6f3ca47350dad30feb529914fc5254fa662ece783408eea963d912918c1
* Copy some extra test infrastructure from the mutexfree-shmlock branch to trunk.dan2018-12-24
| | | FossilOrigin-Name: 883337ffdb434b6856ceaada121c0be67e2fdec7b447675f45e85568ef28d7d9
* Improve the coverage of wal.c provided by the "coverage-wal" test permutation.dan2018-12-22
| | | FossilOrigin-Name: 6231485114eb07b258cd0e6e163ca05f7e9cf5664e071808fcb1329b33e4c4f5
* If an SQLITE_IOERR error is encountered as part of an atomic commit on an F2FSdan2018-07-14
| | | | | file-system, retry the commit in legacy journal mode. FossilOrigin-Name: 1c41250f67ac5de423b0426ef2ab8fe3303278a270225920033933ca9609592a
* Make sure the SQLITE_TCLAPI macro is always defined.mistachkin2016-07-28
| | | FossilOrigin-Name: f2f1323cc4d2ad2d6794dbfae8d50b747213e85d
* Allow the 'testfixture.exe' target to be compiled with the __stdcall calling ↵mistachkin2016-07-28
| | | | | convention. FossilOrigin-Name: e8be3dfeabaa31b3490793cf8230faae1204be15
* Since the return value of sqlite3OsClose() is always ignored, we might asdrh2016-04-14
| | | | | | well make it "void" instead of "int", and thereby save 50 bytes in the compiled binary. FossilOrigin-Name: 7ee570e7a9a2159a8c0d41805c00f91ca0de00e3
* Fix harmless compiler warnings seen with MSVC 2015.mistachkin2015-04-19
| | | FossilOrigin-Name: d05becd873a03a366843a34e7f4c732dd8f88c86
* Add a test for the change on this branch.dan2015-03-17
| | | FossilOrigin-Name: e22dde187eb0b389d6d93e2e39a26fd0f4e6196e
* Eliminate all use of sprintf(), strcpy() and strcat() from test logic becausedrh2015-01-19
| | | | | OpenBSD hates those functions. FossilOrigin-Name: 10321910990195878c0af1e94b34ae0cdc0cb31b
* Silence some harmless uninitialized local variable warnings.mistachkin2015-01-12
| | | FossilOrigin-Name: 44375a34e59d1b0f0d765a99dcc7e6f30a4be7f7
* Add test cases and documentation for the nolock and immutable querydrh2014-05-07
| | | | | parameters. FossilOrigin-Name: 19d56cbaca222b32e2e354063149cccd89441d73
* Comment and preprocessor macro cleanup.drh2013-07-29
| | | FossilOrigin-Name: c0809b5e32c2ca0600098447a573e718eaeb319f
* Drop any existing mapping of the database file when exiting the pager "error ↵dan2013-07-06
| | | | | state", as it may at this point be too large for the database file. Do not invoke file-control MMAP_LIMIT 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). FossilOrigin-Name: 0ae7e75b215b0d75920769da9146c54ce2ad3ce0
* Improve the code coverage of "permutations.test coverage-pager".dan2013-04-05
| | | FossilOrigin-Name: b095e2cdb61ca8487255687f58fb1024d40f3986
* Enhancements to test scripts. No code changes.dan2013-02-23
| | | FossilOrigin-Name: ccab94c10d54e585de918bbf82dec188287d93b2
* When reusing pages as part of creating a new index, allocate the leaves from ↵dan2012-08-06
| | | | | 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. FossilOrigin-Name: d045f8b2d44e388d8c4549ff02d4ca7eff4e2038
* Ensure that there is always at least one aReadMark slot usable by an ↵dan2012-07-17
| | | | | 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. FossilOrigin-Name: e4163596339c2166f9c4356ab824fff8bda8d0b0
* Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also indrh2012-04-19
| | | | | tclsqlite.c and in the FTS4 module. FossilOrigin-Name: 3281972eaa46cb57fd9f0387063f47430dc0a3b4
* Move test logic for SQLITE_FCNTL_PRAGMA out of os_unix.c and into test_vfs.c.drh2012-02-22
| | | FossilOrigin-Name: c81fc40b2b584820ac7d1c3848ebeb7225d4eeeb
* If the SQLITE_FCNTL_PRAGMA file-control returns anything other thandrh2012-02-22
| | | | | SQLTIE_NOTFOUND and SQLITE_OK, then treat the result as an error. FossilOrigin-Name: 5643618108a8aafba67ed4004039b862bb5e5da8
* Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE.drh2011-12-23
| | | | | The query parameter used to control this device characteristic is now "psow". FossilOrigin-Name: 6191c5e45175f5c6040e891843b0725a929d6dd7
* Some fixes to the test suite so that it works with ZERO_DAMAGE set to true.drh2011-12-19
| | | | | Still lots more problems remain. FossilOrigin-Name: 41891b231e20a1d32b1d7449e7863470eb38ca0a
* Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Usedrh2011-12-17
| | | | | | | 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(). FossilOrigin-Name: a0be6ea464695fdf1eaf2b7cf0652778617814f2
* Make sure to flag benign malloc failures in the Windows VFS as such. Expand ↵mistachkin2011-11-12
| | | | | 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. FossilOrigin-Name: 76dec8aa9dbbc39e0a7c3b358b58ce7f7a477a2b
* Add tests to improve coverage of vdbesort.c.dan2011-08-12
| | | FossilOrigin-Name: 87a15917d7d88285054e2a319506dd4a0cac9722
* Remove unused variables from test_vfs.cdrh2011-06-23
| | | FossilOrigin-Name: 07884cc218e6899efd163448ab116f296722f7b8
* Modify the implementation of the test code in test_vfs.c so that test VFS ↵dan2011-06-22
| | | | | objects may be invoked recursively. FossilOrigin-Name: 065e5a5ea4f82f0d3fbb2e80d3a977af96c95683
* Minor cleanups to the header comments on various test_*.c file, to makedrh2011-05-23
| | | | | the suitable for programmer-level documentation. FossilOrigin-Name: a65d043a2ad895b931871c67e0ef397a1dc614a6
* Test that it is now possible to use different VFSs for two databases ↵dan2011-04-23
| | | | | attached to a single handle. FossilOrigin-Name: 2af51f856c6203f836d8bb62b6b79b19554886e7
* Add the start of the "uri-filenames" feature.dan2011-04-22
| | | FossilOrigin-Name: b8a8132e7148a7c90ca1352f20ab71d97b0bc4b0
* Fix a bug in test code (test_vfs.c).dan2011-01-14
| | | FossilOrigin-Name: 772a3845f8ef5cd3131992c45f6ce607977820f3
* If a database file with the WAL flag set is opened in exclusive-locking ↵dan2010-11-01
| | | | | mode, use heap memory to store the wal-index instead of shared-memory. FossilOrigin-Name: 8dd5c69198619866923c6053b71899c1fb8c4c67
* Increase the maximum page size from 32k to 64k.drh2010-08-12
| | | FossilOrigin-Name: 45362437d491fbe0f033a67b398f8ba68cbf1b3b
* Changes so that the xShmOpen VFS method is no longer required. Its job can ↵dan2010-07-13
| | | | | be done by the first call to xShmMap. Rename xShmClose to xShmUnmap. FossilOrigin-Name: f4780bde62c6c19146d2723c101540b8db898d38
* Remove the unused xRename() method from the sqlite3_vfs object.drh2010-07-03
| | | | | Add better documentation on the xCurrentTimeInt64() method. FossilOrigin-Name: 51ec0e5432dd6849b83a3d969a018482eb3bb083
* Fix a bug in test_vfs.c causing an assert to fail. Changes to test code only.dan2010-07-02
| | | FossilOrigin-Name: 336ce7d29767f76c4a92aa4bbc46d21e19871667