SQLite

All files named ”src/test6.c”
Login

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

History for src/test6.c

2025-03-08
06:53
[9722054d37] part of check-in [84d8fcfca1] Test app/script patches from Jan Nijtmans for cygwin. Add/replace many more 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. (check-in: [84d8fcfca1] user: stephan branch: cygwin-fixes, size: 32458)
2025-03-06
13:38
[3e489ba685] part of check-in [205979813c] Cygwin-centric fixes from Jan Nijtmans. (check-in: [205979813c] user: stephan branch: cygwin-fixes, size: 32448)
2024-07-30
15:49
[763b92489f] part of check-in [6e5bb48a74] First attempt at getting the build to work with Tcl 9.0. (check-in: [6e5bb48a74] user: drh branch: tcl9, size: 32442)
2023-06-07
08:40
[e53bc69dc3] part of check-in [26c1bb4bd9] Add a C-source spell-checking facility. make misspell (on Nix) (check-in: [26c1bb4bd9] user: larrybr branch: spell-check, size: 32485)
2020-10-02
15:15
[ae73a3a42b] part of check-in [dd009cd7ae] Fix some test code so that testfixture can build with SQLITE_OMIT_WAL defined. (check-in: [dd009cd7ae] user: dan branch: trunk, size: 32532)
2017-07-22
20:12
[e8d839fbc5] part of check-in [eb8718006c] Add a test for the outcome of a process crash within an xWrite VFS method call. (check-in: [eb8718006c] user: dan branch: batch-atomic-write, size: 32372)
2017-03-07
14:45
[e2ed878f1b] part of check-in [811a559967] When saving the state of an RBU update in the incremental-checkpoint phase, sync the database file. Otherwise, if a power failure occurs and the RBU update resumed following system recovery, the database may become corrupt. Cherrypick of [edee6a80]. (check-in: [811a559967] user: dan branch: version-3.17.0-rbu-fixes, size: 31766)
2017-03-02
14:51
[004ad42f12] part of check-in [edee6a80e1] When saving the state of an RBU update in the incremental-checkpoint phase, sync the database file. Otherwise, if a power failure occurs and the RBU update resumed following system recovery, the database may become corrupt. (check-in: [edee6a80e1] user: dan branch: trunk, size: 31780)
2017-02-15
04:16
[121060d2e7] part of check-in [ee1e689633] Further reforms to Tcl_*Alloc() usage. (check-in: [ee1e689633] user: mistachkin branch: trunk, size: 31568)
2016-07-28
17:11
[55aa2775c1] part of check-in [f2f1323cc4] 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: [f2f1323cc4] user: mistachkin branch: callbackConv, size: 31554)
14:37
[4fc2c870b4] part of check-in [e8be3dfeab] Allow the 'testfixture.exe' target to be compiled with the __stdcall calling convention. (check-in: [e8be3dfeab] user: mistachkin branch: callbackConv, size: 31456)
2016-05-24
16:20
[a684b7abd0] part of check-in [37de3eab67] Fix an obscure problem with transactions written in "PRAGMA synchronous=full" mode on systems that do not support POWERSAFE_OVERWRITE causing an xSync() call to be omitted if the last frame written by a transaction is aligned to a sector boundary. This means that if a power failure or OS crash occurs very soon after such a transaction is committed, it may be lost following system recovery. (check-in: [37de3eab67] user: dan branch: trunk, size: 31381)
2016-04-27
18:54
[2c014d4977] part of check-in [2662d8fef7] Modify the permutations.test script so as to set any permutation specific configuration values before running each individual test script. (check-in: [2662d8fef7] user: dan branch: permutations-fix, size: 30897)
2013-12-11
15:47
[41cacf3b0d] part of check-in [552f94d50f] Add the SQLITE_FCNTL_SYNC and SQLITE_FCNTL_COMMIT_PHASETWO file-controls and have the pager call them at appropriate times. This is needed in order to enable ZIPVFS to do multi-file atomic commits. (check-in: [552f94d50f] user: drh branch: trunk, size: 30343)
11:03
[0c8fdf2e87] part of check-in [fdc3f3fa3d] Have the crash-test infrastructure code in test6.c read and write the 512-byte block containing the pending-byte lock as normal. Earlier versions did not access this part of the file in order to avoid triggering an assert in os_unix.c. But the assert() has since been removed. And not reading/writing this part of the file causes problems for multiplexor tests. (check-in: [fdc3f3fa3d] user: dan branch: zipvfs-multifile-commit, size: 30395)
2013-12-09
20:42
[6884dcfb1d] part of check-in [32fb1784af] Modify the way some internal file-controls are invoked. In order to support multi-file transactions in the zipvfs extension. (check-in: [32fb1784af] user: dan branch: zipvfs-multifile-commit, size: 30529)
2013-10-31
06:11
[4f958b7133] part of check-in [1a0a88657f] Fix harmless compiler warnings. (check-in: [1a0a88657f] user: mistachkin branch: trunk, size: 30460)
2013-10-15
14:29
[00af0fe194] part of check-in [bcbc65030f] Fix an 8-byte alignment problem on the "crash test" harness (test code, not in the core) that causes problems on Sparc. (check-in: [bcbc65030f] user: drh branch: trunk, size: 30453)
2013-03-21
21:20
[a437f76f98] part of check-in [6f6e2d5094] Many spelling fixes in comments. No changes to code. (check-in: [6f6e2d5094] user: mistachkin branch: trunk, size: 30453)
2012-10-18
10:35
[938794c970] part of check-in [51a6a797e1] More warning fixes. (check-in: [51a6a797e1] user: mistachkin branch: warnings, size: 30454)
09:39
[b990d3cfa2] part of check-in [018e09c703] Fix harmless compiler warnings. (check-in: [018e09c703] user: mistachkin branch: warnings, size: 30449)
2012-10-17
16:20
[e0fc0551af] part of check-in [db9b1fa597] Add a test for the problem fixed by [bf44d73d3e]. (check-in: [db9b1fa597] user: dan branch: trunk, size: 30447)
15:28
[0e47537ba1] part of check-in [b8b7b8f9e9] Change the way the tcl crash-test code works to avoid triggering an assert() in os_unix.c. (check-in: [b8b7b8f9e9] user: dan branch: trunk, size: 30425)
2012-04-19
18:04
[417e1e2147] part of check-in [3281972eaa] Fix harmless compiler warnings on x64 MSVC, mostly in test code, but also in tclsqlite.c and in the FTS4 module. (check-in: [3281972eaa] user: drh branch: trunk, size: 30420)
2012-03-30
14:59
[3329df2dbc] part of check-in [cb7a850439] Fix MSVC compiler warnings in test code. (check-in: [cb7a850439] user: drh branch: trunk, size: 30410)
2012-03-08
20:00
[846ed1ed2f] part of check-in [82bcd7ec15] On Windows, make sure the current directory value used by the test suite is 'normalized' to what the parent command shell sees. Also, clean the test directories used by the quota2.test file. (check-in: [82bcd7ec15] user: mistachkin branch: trunk, size: 30364)
2011-12-23
01:04
[cf6ab27a59] part of check-in [6191c5e451] 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: [6191c5e451] user: drh branch: statvfs, size: 30109)
2011-12-17
19:49
[ffcc25c9b3] part of check-in [a0be6ea464] 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: [a0be6ea464] user: drh branch: statvfs, size: 29893)
2011-08-23
19:46
[3191b4ab96] part of check-in [40dd8a60be] Change the way the "crash" VFS (test6.c) handles SQLITE_FCNTL_SIZE_HINT. (check-in: [40dd8a60be] user: dan branch: trunk, size: 29844)
16:41
[fbe4fd2f82] part of check-in [fac8bc8f34] Have the "crash" VFS used by the tcl tests (test6.c) handle SQLITE_FCNTL_SIZE_HINT internally, instead of passing it directly through to the underlying VFS. This is important if the crash VFS is simulating non-default device characteristics such as SQLITE_DEVCAP_SEQUENTIAL or ATOMIC. (check-in: [fac8bc8f34] user: dan branch: trunk, size: 29768)
2010-07-14
00:14
[c7256cc21d] part of check-in [c2d27cf51d] Change the name of the xShmClose VFS method to xShmUnmap, everywhere. (check-in: [c2d27cf51d] user: drh branch: experimental, size: 29572)
2010-07-13
18:44
[e328b5047e] part of check-in [f4780bde62] 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: [f4780bde62] user: dan branch: experimental, size: 29572)
2010-07-08
16:22
[a1217a210f] part of check-in [0bfcf3bcd7] Fix warning in test fixture code. (check-in: [0bfcf3bcd7] user: shaneh branch: trunk, size: 29723)
2010-07-03
17:13
[e7f71216e4] part of check-in [51ec0e5432] Remove the unused xRename() method from the sqlite3_vfs object. Add better documentation on the xCurrentTimeInt64() method. (check-in: [51ec0e5432] user: drh branch: trunk, size: 29711)
2010-06-14
18:01
[44e0a99e8b] part of check-in [58dfd83d8b] Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems to fit in there logically. (check-in: [58dfd83d8b] user: drh branch: trunk, size: 29751)
14:07
[43d6ce22d7] part of check-in [fc0cabc15c] 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: [fc0cabc15c] user: dan branch: experimental, size: 29751)
10:30
[1b31254188] part of check-in [1008f53644] Add the xShmPage method to the "crash" vfs in test6.c. (check-in: [1008f53644] user: dan branch: experimental, size: 30324)
2010-05-30
19:55
[d3e1a771a7] part of check-in [ef3ba7a17f] 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: [ef3ba7a17f] user: drh branch: wal-incr-ckpt, size: 29859)
2010-05-20
23:51
[e524e36b10] part of check-in [1bd011c9fe] 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: [1bd011c9fe] user: drh branch: trunk, size: 29854)
2010-05-18
13:27
[21f6ec70b5] part of check-in [0a6787908e] Mark the shared-memory in the WAL implementation as volatile. (check-in: [0a6787908e] user: drh branch: trunk, size: 29700)
2010-05-12
18:01
[d00c3930e2] part of check-in [2b00152c1a] 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: [2b00152c1a] user: drh branch: wal-refactor, size: 29681)
2010-05-03
16:36
[8b9eedc2fe] part of check-in [ea09ff3791] Update the crash-test VFS in test6.c to pass-through the shared-memory methods to the real underlying VFS. This fixes the walcrash.test script. (check-in: [ea09ff3791] user: drh branch: trunk, size: 30132)
2010-04-27
11:49
[49b39daf8e] part of check-in [ed715b47c5] Add the xShmRelease() method to the VFS. The os_unix.c implementation of the shared memory logic is still non-functional. (check-in: [ed715b47c5] user: drh branch: wal, size: 28432)
2010-04-26
00:04
[d23fc84954] part of check-in [f5e615c28c] Begin moving WAL-specific I/O into the VFS. This checkin contains VFS infrastructure but it is untested and is not yet hooked up to the WAL. The version number is bumped to 3.7.0 because of the VFS extension. (check-in: [f5e615c28c] user: drh branch: wal, size: 28812)
2009-11-10
01:30
[a8ece4284d] part of check-in [f6c045f649] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f649] user: drh branch: trunk, size: 28432)
2009-02-11
14:27
[1a0a7a1f17] part of check-in [b7fd4615cd] Fix the crashtest infrastructure so that it doesn't trigger the "don't write to the locking region" assert in os_unix.c. (CVS 6281) (check-in: [b7fd4615cd] user: danielk1977 branch: trunk, size: 28496)
2009-02-10
14:28
[86d7918ccc] part of check-in [2a6a431692] Prevent code in test6.c from reading the 512 byte locking region (the PENDING_BYTE page) of a database file. Doing so triggers an assert failure in os_unix.c. (CVS 6276) (check-in: [2a6a431692] user: danielk1977 branch: trunk, size: 27964)
2008-12-20
18:33
[10025acfb5] part of check-in [49172e4876] Add a vfs backend that detects problems like the one addressed by (6043) and (6047). (CVS 6049) (check-in: [49172e4876] user: danielk1977 branch: trunk, size: 27267)
2008-12-09
01:32
[11fc775cce] part of check-in [680755dbf0] Fix compiler warnings in where.c and in the TCL test harness. (CVS 5994) (check-in: [680755dbf0] user: drh branch: trunk, size: 26027)
2008-06-06
11:11
[0a0304a69c] part of check-in [5173b3e816] Remove the xGetTempname() method from the vfs structure. Temp files are now opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190) (check-in: [5173b3e816] user: danielk1977 branch: trunk, size: 26043)
2008-06-05
11:39
[6f96099019] part of check-in [4226ac54be] Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188) (check-in: [4226ac54be] user: danielk1977 branch: trunk, size: 26273)
2008-05-16
04:51
[1f7d1cc0d9] part of check-in [81a8c70ed7] Add more version tags to files that lack them. Ticket #3120. (CVS 5137) (check-in: [81a8c70ed7] user: danielk1977 branch: trunk, size: 26214)
2008-03-19
14:15
[62281c0a9a] part of check-in [15110ea027] Add a new api sqlite3_randomness() for providing access to SQLite's internal PRNG. Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882) (check-in: [15110ea027] user: drh branch: trunk, size: 26150)
2008-01-22
11:50
[f8b34a6ff0] part of check-in [17e7bd6c3f] Move the test (sqlite3_simulate_device) functionality out of the main code and into a test vfs. (CVS 4737) (check-in: [17e7bd6c3f] user: danielk1977 branch: trunk, size: 26147)
2008-01-18
13:42
[8944b6482b] part of check-in [65245d9904] Add a test (and fix) for possible corruption if malloc() fails during a CREATE INDEX statement, the application continues with the transaction, then crashes. (CVS 4725) (check-in: [65245d9904] user: danielk1977 branch: trunk, size: 26281)
2007-12-14
17:22
[f40e41e180] part of check-in [0d5747dbad] Change to the crash simulator to give better diagnostics in case it runs out of memory while using the mem3.c allocator. (CVS 4632) (check-in: [0d5747dbad] user: drh branch: trunk, size: 26027)
2007-09-17
07:02
[a9fc983d32] part of check-in [8b29f5fbfc] Add a parameter to specify the size of the output buffer passed to xGetTempname() and xFullPathname(). This, and the previous commit, are changes to the public vfs API introduced in 3.5.0. (CVS 4433) (check-in: [8b29f5fbfc] user: danielk1977 branch: trunk, size: 25943)
06:06
[0f3894c2fd] part of check-in [ad3687b16e] Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432) (check-in: [ad3687b16e] user: danielk1977 branch: trunk, size: 25885)
2007-09-01
09:02
[0513982dfe] part of check-in [595bfe72f0] Fix a problem handling a malloc() failure in printf.c. Also some other things to improve test coverage. (CVS 4361) (check-in: [595bfe72f0] user: danielk1977 branch: trunk, size: 25885)
06:51
[e6ce0d295f] part of check-in [5f48fb95c2] Fix for registration of non-default vfs objects. (CVS 4360) (check-in: [5f48fb95c2] user: danielk1977 branch: trunk, size: 25131)
2007-08-31
18:34
[128084277e] part of check-in [306586c412] Remove the xLockState method for sqlite3_io_methods. Replace it with a defined call to xFileControl(). This simplifies the interface and also gives us coverage testing of sqlite3_file_control(). (CVS 4355) (check-in: [306586c412] user: drh branch: trunk, size: 25179)
16:11
[a3480a6e7d] part of check-in [d3ab3e3911] Initial implementation of the sqlite3_file_control() interface. Compiles and passes all historical tests but the new method is itself untested. (CVS 4353) (check-in: [d3ab3e3911] user: drh branch: trunk, size: 25337)
2007-08-25
12:29
[a6223d9d93] part of check-in [04167483aa] Make the test_async backend work again. (CVS 4293) (check-in: [04167483aa] user: danielk1977 branch: trunk, size: 25301)
2007-08-24
16:08
[7007b3941a] part of check-in [b8451da378] Remove nRef and vfsMutex from the sqlite3_vfs structure. Omit the sqlite3_vfs_release() interface. Less memory allocated for a pager in the common case where the size of the pathname is less than MAX_PATH. (CVS 4287) (check-in: [b8451da378] user: drh branch: trunk, size: 25000)
08:15
[37caea0878] part of check-in [bdf5cb8d25] Add tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP_SAFE_APPEND. (CVS 4284) (check-in: [bdf5cb8d25] user: danielk1977 branch: trunk, size: 25113)
03:51
[de2dbcd674] part of check-in [3a68fcddfa] The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) (check-in: [3a68fcddfa] user: drh branch: trunk, size: 23648)
2007-08-23
11:07
[5d6286568b] part of check-in [5f0fb894f4] Add some further tests and a bugfix for the atomic-write optimization. (CVS 4276) (check-in: [5f0fb894f4] user: danielk1977 branch: trunk, size: 23637)
08:06
[2c141f367b] part of check-in [e2cc7b4a34] Add some tests for the atomic-write optimization. (CVS 4275) (check-in: [e2cc7b4a34] user: danielk1977 branch: trunk, size: 23105)
02:47
[1191c2305c] part of check-in [21f6b31097] Improvements to memory leak detection. The --backtrace=NNN option is now recognized by tester.tcl. Memory leak summaries are automatically written to the file ./memleak.txt and each leak is tagged with the test in which it occurred. The quick.test script runs on Linux with no errors and no leaks. (CVS 4273) (check-in: [21f6b31097] user: drh branch: trunk, size: 22102)
2007-08-21
13:07
[da83a0e49c] part of check-in [5bced2392a] Fix some problems in the crash-test backend. (CVS 4256) (check-in: [5bced2392a] user: danielk1977 branch: trunk, size: 22189)
10:44
[9a93a5538f] part of check-in [fbbd5bda54] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (check-in: [fbbd5bda54] user: drh branch: trunk, size: 20206)
2007-08-20
22:48
[b0090b4826] part of check-in [1315bd8e12] Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253) (check-in: [1315bd8e12] user: drh branch: trunk, size: 20222)
14:23
[d67117b2c1] part of check-in [40f66ada81] Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247) (check-in: [40f66ada81] user: danielk1977 branch: trunk, size: 19415)
2007-08-17
15:53
[80990810f6] part of check-in [af3e3c7acd] Begin migration to using sqlite3_vfs interface. (CVS 4240) (check-in: [af3e3c7acd] user: danielk1977 branch: trunk, size: 19254)
2007-08-16
10:09
[14919eef85] part of check-in [77b1671351] More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233) (check-in: [77b1671351] user: danielk1977 branch: trunk, size: 19112)
04:30
[b0aea62991] part of check-in [deb7ecd65f] Half-way through a major refactoring of the memory allocation. I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) (check-in: [deb7ecd65f] user: drh branch: trunk, size: 18986)
2007-08-15
17:08
[4d812a5ea1] part of check-in [af9503daf3] Modify the crash-recovery test code in test6.c for 3.5. Also change some other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228) (check-in: [af9503daf3] user: danielk1977 branch: trunk, size: 18972)
2007-08-14
17:42
[2c4ed21787] part of check-in [63631c1737] Add comments describing upcoming changes to crash-test module (test6.c). No code changes. (CVS 4223) (check-in: [63631c1737] user: danielk1977 branch: trunk, size: 18632)
2007-03-19
05:54
[5957d249d4] part of check-in [5752d84d37] Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700) (check-in: [5752d84d37] user: danielk1977 branch: trunk, size: 14614)
2007-03-17
10:26
[edbd903a48] part of check-in [c4be8d9949] Modifications to crash-test infrastructure. (CVS 3695) (check-in: [c4be8d9949] user: danielk1977 branch: trunk, size: 14484)
2006-01-24
10:58
[60a02961ce] part of check-in [153940af5a] General test coverage improvements. (CVS 3022) (check-in: [153940af5a] user: danielk1977 branch: trunk, size: 13899)
2006-01-06
21:52
[74d91b487c] part of check-in [9d71b7deaf] Changes so that SQLITE_OMIT_PARSER and SQLITE_OMIT_DISKIO work. (CVS 2878) (check-in: [9d71b7deaf] user: drh branch: trunk, size: 13830)
14:32
[2c195d0734] part of check-in [2529c2e11f] Change the OS interface layer to use traditional direct function call implementations instead of the more complicated virtual function table. Omit the asynchronous I/O demo. (CVS 2870) (check-in: [2529c2e11f] user: drh branch: trunk, size: 13683)
2005-11-30
03:20
[cb811391ec] part of check-in [bd8740d1ae] Restructure the OS interface yet again. This time make the OsFile object a virtual base class which is subclassed for unix, windows, and the crash test simulator. Add the new file "os.c" for common os layer code. Move all OS-specific routines into the sqlite3Os structure. (CVS 2795) (check-in: [bd8740d1ae] user: drh branch: trunk, size: 13649)
2005-11-29
18:37
[951effde62] part of check-in [966bc68e1b] The crash tests now compile, at least. But they get wrong results. The problem is fundamental and suggests I need to completely rethink how the new OS backend should work. (CVS 2792) (check-in: [966bc68e1b] user: drh branch: trunk, size: 13632)
03:13
[0543cf075a] part of check-in [058f317538] Make the OsFile structure opaque with its internal structure known only to the appropriate os_*.c implementation. Omit the os_unix.h and os_win.h include files. The crash tests are broken by this patch. (CVS 2791) (check-in: [058f317538] user: drh branch: trunk, size: 12520)
2005-11-26
03:43
[d8501501db] part of check-in [57a674fc71] Add an OS method for making copies of file descriptors. This fixes the crash tests. (CVS 2786) (check-in: [57a674fc71] user: drh branch: trunk, size: 12562)
00:25
Added: [d86ca78abd] part of check-in [1f69aec285] Modify the OS layer so that I/O routines are called through a virtual function table. The os_test.c module has been replaced by test6.c. The crash tests are busted now and need to be fixed. (CVS 2785) (check-in: [1f69aec285] user: drh branch: trunk, size: 12352)