/ History for src/test6.c
Login

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

History for src/test6.c

2017-07-22
20:12
[e8d839fb] part of check-in [eb871800] Add a test for the outcome of a process crash within an xWrite VFS method call. (check-in: [eb871800] user: dan branch: batch-atomic-write, size: 32372)
2017-03-07
14:45
[e2ed878f] part of check-in [811a5599] 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: [811a5599] user: dan branch: version-3.17.0-rbu-fixes, size: 31766)
2017-03-02
14:51
[004ad42f] part of check-in [edee6a80] 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: [edee6a80] user: dan branch: trunk, size: 31780)
2017-02-15
04:16
[121060d2] part of check-in [ee1e6896] Further reforms to Tcl_*Alloc() usage. (check-in: [ee1e6896] user: mistachkin branch: trunk, size: 31568)
2016-07-28
17:11
[55aa2775] 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: 31554)
14:37
[4fc2c870] 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: 31456)
2016-05-24
16:20
[a684b7ab] part of check-in [37de3eab] 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: [37de3eab] user: dan branch: trunk, size: 31381)
2016-04-27
18:54
[2c014d49] part of check-in [2662d8fe] Modify the permutations.test script so as to set any permutation specific configuration values before running each individual test script. (check-in: [2662d8fe] user: dan branch: permutations-fix, size: 30897)
2013-12-11
15:47
[41cacf3b] part of check-in [552f94d5] 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: [552f94d5] user: drh branch: trunk, size: 30343)
11:03
[0c8fdf2e] part of check-in [fdc3f3fa] 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: [fdc3f3fa] user: dan branch: zipvfs-multifile-commit, size: 30395)
2013-12-09
20:42
[6884dcfb] part of check-in [32fb1784] Modify the way some internal file-controls are invoked. In order to support multi-file transactions in the zipvfs extension. (check-in: [32fb1784] user: dan branch: zipvfs-multifile-commit, size: 30529)
2013-10-31
06:11
[4f958b71] part of check-in [1a0a8865] Fix harmless compiler warnings. (check-in: [1a0a8865] user: mistachkin branch: trunk, size: 30460)
2013-10-15
14:29
[00af0fe1] part of check-in [bcbc6503] Fix an 8-byte alignment problem on the "crash test" harness (test code, not in the core) that causes problems on Sparc. (check-in: [bcbc6503] user: drh branch: trunk, size: 30453)
2013-03-21
21:20
[a437f76f] part of check-in [6f6e2d50] Many spelling fixes in comments. No changes to code. (check-in: [6f6e2d50] user: mistachkin branch: trunk, size: 30453)
2012-10-18
10:35
[938794c9] part of check-in [51a6a797] More warning fixes. (check-in: [51a6a797] user: mistachkin branch: warnings, size: 30454)
09:39
[b990d3cf] part of check-in [018e09c7] Fix harmless compiler warnings. (check-in: [018e09c7] user: mistachkin branch: warnings, size: 30449)
2012-10-17
16:20
[e0fc0551] part of check-in [db9b1fa5] Add a test for the problem fixed by [bf44d73d3e]. (check-in: [db9b1fa5] user: dan branch: trunk, size: 30447)
15:28
[0e47537b] part of check-in [b8b7b8f9] Change the way the tcl crash-test code works to avoid triggering an assert() in os_unix.c. (check-in: [b8b7b8f9] user: dan branch: trunk, size: 30425)
2012-04-19
18:04
[417e1e21] 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: 30420)
2012-03-30
14:59
[3329df2d] part of check-in [cb7a8504] Fix MSVC compiler warnings in test code. (check-in: [cb7a8504] user: drh branch: trunk, size: 30410)
2012-03-08
20:00
[846ed1ed] part of check-in [82bcd7ec] 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: [82bcd7ec] user: mistachkin branch: trunk, size: 30364)
2011-12-23
01:04
[cf6ab27a] 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: 30109)
2011-12-17
19:49
[ffcc25c9] 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: 29893)
2011-08-23
19:46
[3191b4ab] part of check-in [40dd8a60] Change the way the "crash" VFS (test6.c) handles SQLITE_FCNTL_SIZE_HINT. (check-in: [40dd8a60] user: dan branch: trunk, size: 29844)
16:41
[fbe4fd2f] part of check-in [fac8bc8f] 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: [fac8bc8f] user: dan branch: trunk, size: 29768)
2010-07-14
00:14
[c7256cc2] part of check-in [c2d27cf5] Change the name of the xShmClose VFS method to xShmUnmap, everywhere. (check-in: [c2d27cf5] user: drh branch: experimental, size: 29572)
2010-07-13
18:44
[e328b504] 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: 29572)
2010-07-08
16:22
[a1217a21] part of check-in [0bfcf3bc] Fix warning in test fixture code. (check-in: [0bfcf3bc] user: shaneh branch: trunk, size: 29723)
2010-07-03
17:13
[e7f71216] 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: 29711)
2010-06-14
18:01
[44e0a99e] 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: 29751)
14:07
[43d6ce22] 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: 29751)
10:30
[1b312541] part of check-in [1008f536] Add the xShmPage method to the "crash" vfs in test6.c. (check-in: [1008f536] user: dan branch: experimental, size: 30324)
2010-05-30
19:55
[d3e1a771] 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: 29859)
2010-05-20
23:51
[e524e36b] 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: 29854)
2010-05-18
13:27
[21f6ec70] part of check-in [0a678790] Mark the shared-memory in the WAL implementation as volatile. (check-in: [0a678790] user: drh branch: trunk, size: 29700)
2010-05-12
18:01
[d00c3930] 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: 29681)
2010-05-03
16:36
[8b9eedc2] part of check-in [ea09ff37] 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: [ea09ff37] user: drh branch: trunk, size: 30132)
2010-04-27
11:49
[49b39daf] part of check-in [ed715b47] Add the xShmRelease() method to the VFS. The os_unix.c implementation of the shared memory logic is still non-functional. (check-in: [ed715b47] user: drh branch: wal, size: 28432)
2010-04-26
00:04
[d23fc849] part of check-in [f5e615c2] 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: [f5e615c2] user: drh branch: wal, size: 28812)
2009-11-10
01:30
[a8ece428] part of check-in [f6c045f6] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f6] user: drh branch: trunk, size: 28432)
2009-02-11
14:27
[1a0a7a1f] part of check-in [b7fd4615] 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: [b7fd4615] user: danielk1977 branch: trunk, size: 28496)
2009-02-10
14:28
[86d7918c] part of check-in [2a6a4316] 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: [2a6a4316] user: danielk1977 branch: trunk, size: 27964)
2008-12-20
18:33
[10025acf] part of check-in [49172e48] Add a vfs backend that detects problems like the one addressed by (6043) and (6047). (CVS 6049) (check-in: [49172e48] user: danielk1977 branch: trunk, size: 27267)
2008-12-09
01:32
[11fc775c] part of check-in [680755db] Fix compiler warnings in where.c and in the TCL test harness. (CVS 5994) (check-in: [680755db] user: drh branch: trunk, size: 26027)
2008-06-06
11:11
[0a0304a6] part of check-in [5173b3e8] 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: [5173b3e8] user: danielk1977 branch: trunk, size: 26043)
2008-06-05
11:39
[6f960990] part of check-in [4226ac54] Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188) (check-in: [4226ac54] user: danielk1977 branch: trunk, size: 26273)
2008-05-16
04:51
[1f7d1cc0] part of check-in [81a8c70e] Add more version tags to files that lack them. Ticket #3120. (CVS 5137) (check-in: [81a8c70e] user: danielk1977 branch: trunk, size: 26214)
2008-03-19
14:15
[62281c0a] part of check-in [15110ea0] 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: [15110ea0] user: drh branch: trunk, size: 26150)
2008-01-22
11:50
[f8b34a6f] part of check-in [17e7bd6c] Move the test (sqlite3_simulate_device) functionality out of the main code and into a test vfs. (CVS 4737) (check-in: [17e7bd6c] user: danielk1977 branch: trunk, size: 26147)
2008-01-18
13:42
[8944b648] part of check-in [65245d99] 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: [65245d99] user: danielk1977 branch: trunk, size: 26281)
2007-12-14
17:22
[f40e41e1] part of check-in [0d5747db] 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: [0d5747db] user: drh branch: trunk, size: 26027)
2007-09-17
07:02
[a9fc983d] part of check-in [8b29f5fb] 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: [8b29f5fb] user: danielk1977 branch: trunk, size: 25943)
06:06
[0f3894c2] part of check-in [ad3687b1] Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432) (check-in: [ad3687b1] user: danielk1977 branch: trunk, size: 25885)
2007-09-01
09:02
[0513982d] part of check-in [595bfe72] Fix a problem handling a malloc() failure in printf.c. Also some other things to improve test coverage. (CVS 4361) (check-in: [595bfe72] user: danielk1977 branch: trunk, size: 25885)
06:51
[e6ce0d29] part of check-in [5f48fb95] Fix for registration of non-default vfs objects. (CVS 4360) (check-in: [5f48fb95] user: danielk1977 branch: trunk, size: 25131)
2007-08-31
18:34
[12808427] part of check-in [306586c4] 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: [306586c4] user: drh branch: trunk, size: 25179)
16:11
[a3480a6e] part of check-in [d3ab3e39] 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: [d3ab3e39] user: drh branch: trunk, size: 25337)
2007-08-25
12:29
[a6223d9d] part of check-in [04167483] Make the test_async backend work again. (CVS 4293) (check-in: [04167483] user: danielk1977 branch: trunk, size: 25301)
2007-08-24
16:08
[7007b394] part of check-in [b8451da3] 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: [b8451da3] user: drh branch: trunk, size: 25000)
08:15
[37caea08] part of check-in [bdf5cb8d] Add tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP_SAFE_APPEND. (CVS 4284) (check-in: [bdf5cb8d] user: danielk1977 branch: trunk, size: 25113)
03:51
[de2dbcd6] part of check-in [3a68fcdd] The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) (check-in: [3a68fcdd] user: drh branch: trunk, size: 23648)
2007-08-23
11:07
[5d628656] part of check-in [5f0fb894] Add some further tests and a bugfix for the atomic-write optimization. (CVS 4276) (check-in: [5f0fb894] user: danielk1977 branch: trunk, size: 23637)
08:06
[2c141f36] part of check-in [e2cc7b4a] Add some tests for the atomic-write optimization. (CVS 4275) (check-in: [e2cc7b4a] user: danielk1977 branch: trunk, size: 23105)
02:47
[1191c230] part of check-in [21f6b310] 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: [21f6b310] user: drh branch: trunk, size: 22102)
2007-08-21
13:07
[da83a0e4] part of check-in [5bced239] Fix some problems in the crash-test backend. (CVS 4256) (check-in: [5bced239] user: danielk1977 branch: trunk, size: 22189)
10:44
[9a93a553] part of check-in [fbbd5bda] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (check-in: [fbbd5bda] user: drh branch: trunk, size: 20206)
2007-08-20
22:48
[b0090b48] part of check-in [1315bd8e] Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253) (check-in: [1315bd8e] user: drh branch: trunk, size: 20222)
14:23
[d67117b2] part of check-in [40f66ada] Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247) (check-in: [40f66ada] user: danielk1977 branch: trunk, size: 19415)
2007-08-17
15:53
[80990810] part of check-in [af3e3c7a] Begin migration to using sqlite3_vfs interface. (CVS 4240) (check-in: [af3e3c7a] user: danielk1977 branch: trunk, size: 19254)
2007-08-16
10:09
[14919eef] part of check-in [77b16713] More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233) (check-in: [77b16713] user: danielk1977 branch: trunk, size: 19112)
04:30
[b0aea629] part of check-in [deb7ecd6] 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: [deb7ecd6] user: drh branch: trunk, size: 18986)
2007-08-15
17:08
[4d812a5e] part of check-in [af9503da] 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: [af9503da] user: danielk1977 branch: trunk, size: 18972)
2007-08-14
17:42
[2c4ed217] part of check-in [63631c17] Add comments describing upcoming changes to crash-test module (test6.c). No code changes. (CVS 4223) (check-in: [63631c17] user: danielk1977 branch: trunk, size: 18632)
2007-03-19
05:54
[5957d249] part of check-in [5752d84d] Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700) (check-in: [5752d84d] user: danielk1977 branch: trunk, size: 14614)
2007-03-17
10:26
[edbd903a] part of check-in [c4be8d99] Modifications to crash-test infrastructure. (CVS 3695) (check-in: [c4be8d99] user: danielk1977 branch: trunk, size: 14484)
2006-01-24
10:58
[60a02961] part of check-in [153940af] General test coverage improvements. (CVS 3022) (check-in: [153940af] user: danielk1977 branch: trunk, size: 13899)
2006-01-06
21:52
[74d91b48] part of check-in [9d71b7de] Changes so that SQLITE_OMIT_PARSER and SQLITE_OMIT_DISKIO work. (CVS 2878) (check-in: [9d71b7de] user: drh branch: trunk, size: 13830)
14:32
[2c195d07] part of check-in [2529c2e1] 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: [2529c2e1] user: drh branch: trunk, size: 13683)
2005-11-30
03:20
[cb811391] part of check-in [bd8740d1] 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: [bd8740d1] user: drh branch: trunk, size: 13649)
2005-11-29
18:37
[951effde] part of check-in [966bc68e] 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: [966bc68e] user: drh branch: trunk, size: 13632)
03:13
[0543cf07] part of check-in [058f3175] 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: [058f3175] user: drh branch: trunk, size: 12520)
2005-11-26
03:43
[d8501501] part of check-in [57a674fc] Add an OS method for making copies of file descriptors. This fixes the crash tests. (CVS 2786) (check-in: [57a674fc] user: drh branch: trunk, size: 12562)
00:25
[d86ca78a] part of check-in [1f69aec2] 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: [1f69aec2] user: drh branch: trunk, size: 12352) Added