dan
37db72f1f7
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: 4b3651677e7132c4c45605bc1f216fc08ef31198
2015-01-01 18:03:49 +00:00
dan
e4bec37900
Fix various problems in fts5 revealed by fault-injection tests.
...
FossilOrigin-Name: e358c3de5c916f2c851ab9324ceaae4e4e7a0fbd
2014-12-18 18:25:48 +00:00
dan
76ccd89d13
If SQLITE_TEST_REALLOC_STRESS is defined, extend the op-code array used by virtual-machine programs by one element at a time, instead of doubling its size with each realloc().
...
FossilOrigin-Name: 4c291827224b84487a38e7ccba2edabc0f15b5ba
2014-08-12 13:38:52 +00:00
dan
22c745a9c9
Fix a minor problem in progress.test. No code changes.
...
FossilOrigin-Name: a95ae93b32a9ad2ae017124ed0881802c3c741c0
2013-08-21 07:25:03 +00:00
dan
4044906210
Test script changes to support testing sqlite3_interrupt().
...
FossilOrigin-Name: 0cede9f898bcd13dab51b25cb0e72213d988d3d2
2013-08-20 16:08:39 +00:00
dan
893c0ffc29
Add a test that simulates an error in mmap().
...
FossilOrigin-Name: 6ec7367d8e98425f00eeb8215ca8964313c1d0b7
2013-03-25 19:05:07 +00:00
mistachkin
5ea4298c81
Replace the missed 'file copy' in malloc_common.tcl with copy_file.
...
FossilOrigin-Name: cd20b4ef6020c0cffe918362afc2b491fb95eb92
2011-08-02 20:03:36 +00:00
mistachkin
fda06befd5
Add retry logic for AV defense to winOpen. Also, refactor test suite to allow the key Tcl file operations (e.g. copy and delete) to be retried.
...
FossilOrigin-Name: 9007586fdabed8dbcc78581ea9821cfd1f9a4c8c
2011-08-02 00:57:34 +00:00
dan
213ca0a8cf
Add test infrastructure (and some tests) to inject faults into os_unix.c using the new xSetSystemCall interface.
...
FossilOrigin-Name: 0e1d20dfaeea5ab285d16aa4b8f02b61b1d2bc10
2011-03-28 19:10:06 +00:00
dan
f3aef49cbd
Add options to test command [do_faultsim_test] to support testing VFS implementations.
...
FossilOrigin-Name: 503ad889da675b3dd83da7338e2902e42f69acac
2011-01-21 15:52:02 +00:00
dan
ccc7ff4d34
Add new test file e_droptrigger.test.
...
FossilOrigin-Name: d23ef9b88c6705219e5138e50f0f351f6401c401
2010-11-29 12:06:45 +00:00
dan
ddf80eb8ce
Test coverage improvements for fts3.c.
...
FossilOrigin-Name: a8b1d99899678b72c2a487909eabed321593d55f
2010-10-25 12:47:43 +00:00
dan
4f7c5e684a
Experimental changes to fts4 to try to selectively avoid loading very large doclists.
...
FossilOrigin-Name: 5ae0ba447a561e3b6637b52f9b83a9fc683d2572
2010-10-19 14:07:59 +00:00
dan
d78fe8e380
Change code in malloc_common.tcl (test code) to retry a "file delete -force" if
...
it fails.
FossilOrigin-Name: ebfb04f00c839601d92d33b9c2305fc4ce869bbc
2010-09-16 15:23:07 +00:00
dan
7bddb7550b
Add tests (and associated fixes) to restore coverage of rtree.c.
...
FossilOrigin-Name: b06f4695bdab244d9c764c082cd434a764dc5c29
2010-08-30 15:43:45 +00:00
dan
304feffc3f
Fix a test script bug uncovered by [a121cd80c5] that was causing shared_err.test to fail.
...
FossilOrigin-Name: d7b63a4c9fdd2acdb5829224b6189e7f2f6bedb9
2010-07-16 10:39:54 +00:00
dan
50833e32c1
Test the libaries response to read-only or unreadable database, WAL and wal-index files. If a WAL file cannot be opened in read/write mode, return SQLITE_CANTOPEN to the caller.
...
FossilOrigin-Name: 45bb84c6283d803fc29077fdc2d06fa50ec06a59
2010-07-14 16:37:17 +00:00
shaneh
decd09cbe5
Exclude fts3cov.test from the "in memory" permutation test suite to avoid a false positive.
...
FossilOrigin-Name: 6af6794cac5516f8cbc425cb8c73468ca371a1ad
2010-07-09 18:43:40 +00:00
dan
f9b4419d39
Further test cases for pager1.test and pagerfault.test.
...
FossilOrigin-Name: bfd563c4714d86805fa09ce9f4f807e5d502a99b
2010-06-25 19:09:48 +00:00
dan
dca321aed4
Add coverage tests. Remove a NEVER macro from pager.c, as the condition can now be true in wal mode.
...
FossilOrigin-Name: 7aac9ad6dd14b1c56eb8e4750ac769c6197c30bd
2010-06-24 10:50:17 +00:00
dan
346e426753
Add test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in pager.c that this hits.
...
FossilOrigin-Name: 3e9680c4c18140d083b24e05a21ea6792aef2487
2010-06-23 19:27:36 +00:00
dan
e08341c664
Change things so that journal2.test works with ENABLE_ATOMIC_WRITE.
...
FossilOrigin-Name: a64d96db09ef2b7651fa4e98d3c7bf3ae5d3fe96
2010-06-21 12:34:29 +00:00
dan
146ed78b78
Add tests to pager1.test and pagerfault.test.
...
FossilOrigin-Name: f5df83fd875073eee8e2269e87e2a8c9c7abc981
2010-06-19 17:26:37 +00:00
dan
b0ac3e3a17
Fix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnlock method.
...
FossilOrigin-Name: 6c5c04eea1f0e8d61883ee8675c249fbf895dc01
2010-06-16 10:55:42 +00:00
dan
1f55e28d2a
Enhancements to test_vfs.c and walfault.test.
...
FossilOrigin-Name: ac0de2f39e948f3b00e96eebf56ebee70472020d
2010-06-03 09:25:10 +00:00
dan
a4bc123f83
Change the OOM and IO error test cases in walfault.test so that each test case runs both types of error simulation.
...
FossilOrigin-Name: b627e1536822bb7e3ef91867661a53be0efc13ef
2010-06-01 17:46:38 +00:00
dan
8521abfd48
Changes to the way one of the WAL/OOM tests works.
...
FossilOrigin-Name: 15abbc34168f7a5bd418254c2b16aac97029e6ea
2010-05-31 06:38:34 +00:00
dan
ef37802545
Fix a typo in walfault.test.
...
FossilOrigin-Name: 232dbe8ecec16485be5c5995fdf7a0ed951c2097
2010-05-04 11:06:03 +00:00
dan
5e9e482fe0
Add a test to simulate an OOM during log recovery to walfault.test.
...
FossilOrigin-Name: 7ed85e87dd206083310ba28afab4389885f61dac
2010-05-03 18:01:21 +00:00
danielk1977
98c21903bd
Always transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. This was already happening in most places. (CVS 5738)
...
FossilOrigin-Name: 046ef07261d520c9399bd8cdfdfd5281956b7a27
2008-09-23 16:41:29 +00:00
drh
e9d1c720ee
Separate verbs of sqlite3_config() and sqlite3_db_config() into their
...
own namespaces. Allow SQLITE3_DBCONFIG_LOOKASIDE to specific an external
memory buffer. (CVS 5536)
FossilOrigin-Name: 5dd865da5e787c10ef4c9e96647724bfab9dea01
2008-08-04 20:13:26 +00:00
drh
4cfb22f798
Fix problems in test scripts. Add new test cases to improve test coverage. (CVS 5521)
...
FossilOrigin-Name: b65f493c7519e8a5ee632a395b57d45269741dda
2008-08-01 18:47:01 +00:00
drh
9a1ec1e3ae
Remove stray breakpoints from test scripts. (CVS 5465)
...
FossilOrigin-Name: cb5e75dfa5c7048bd0994afac19846f70bfa7a4d
2008-07-23 20:28:13 +00:00
danielk1977
f7b9d66fd4
Fix a bug in handling queries on the sqlite_master table with an empty (0 bytes in size) database file. (CVS 5286)
...
FossilOrigin-Name: f8238770bf41e17014c6de05363b759304fc80de
2008-06-23 18:49:43 +00:00
danielk1977
d09414cdd6
Move the malloc() failure simulation out of malloc.c and into a separate sqlite3_mem_methods interface. Still some related changes to come. (CVS 5250)
...
FossilOrigin-Name: d22cd2a59f472f4eaf80aa9f55fbff2514ca428d
2008-06-19 18:17:49 +00:00
drh
3088d59e06
Add a completely new testing system for the Bitvec object. The new
...
testing system uses sqlite3_test_control() instead of unpublished
APIs. Now provides 100% condition/decision coverage. Obscure bugs
in Bitvec found and fixed as a result of the enhanced coverage. (CVS 4902)
FossilOrigin-Name: 2498d3ea36ecab6d9c0f04ef1c49d76a7a215a4f
2008-03-21 16:45:47 +00:00
drh
2fa1868fb6
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)
FossilOrigin-Name: 15110ea02768bfe977a57eccd6b941a36ebd6b32
2008-03-19 14:15:34 +00:00
drh
5efaf07099
Add the ability to simulate out-of-memory errors when using the default
...
memory allocator, mem1.c. Fix a bug that this enhancement revealed. (CVS 4875)
FossilOrigin-Name: d55a5e1c11ef90534abd2e5f18d06dd4739ade70
2008-03-18 00:07:10 +00:00
drh
eee4c8ca11
Add the memory fault simulator to mem5.c. Enable soft heap limit on mem5.c.
...
Limit the size of hash tables and the vdbefifo when using mem5.c. (CVS 4795)
FossilOrigin-Name: 63da5d97542e4f54c33329833477c8d96ce05dd0
2008-02-18 22:24:57 +00:00
drh
643167ff21
Add the fault injector module in fault.c. Use it as a basis for memory
...
allocation failure testing. (CVS 4742)
FossilOrigin-Name: 1a335e180183b414fcc3510ce28b98b21cd134a6
2008-01-22 21:30:53 +00:00
drh
1527ff4e52
Fix test instrumentation problems on shared_err.test. (CVS 4728)
...
FossilOrigin-Name: 5aef5b0dd8e44a56f84fbc6f843016bca5101987
2008-01-18 17:03:32 +00:00
drh
93aed5a177
Get all tests running without memory leaks. (CVS 4714)
...
FossilOrigin-Name: 5807921f5a6e2e08f2c9e79aa91d8c587d64de74
2008-01-16 17:46:38 +00:00
danielk1977
ae72d98252
Add automatic recovery from the pager "error-state". Also add a new error code - SQLITE_IOERR_NOMEM. (CVS 4454)
...
FossilOrigin-Name: 12eca32a6a3d68d5b20eed03afdffe7599e66014
2007-10-03 08:46:44 +00:00
drh
5a3032b3e2
Enable threadsafe builds by default in configure. Ticket #2606 .
...
Changes to test scripts to do better testing under all configurations. (CVS 4379)
FossilOrigin-Name: d66e08fd4f12407e565dc9fc53a5802216808378
2007-09-03 16:12:09 +00:00
danielk1977
369ff42e77
Fixes to test code so that the test suite passes without SQLITE_MEMDEBUG defined. (CVS 4370)
...
FossilOrigin-Name: ed2a2e0102c4fd2221096028d55a6f1d54f97274
2007-09-03 07:31:09 +00:00
danielk1977
7751940d6e
Fixes for failures in fuzz_malloc.test. (CVS 4334)
...
FossilOrigin-Name: d3e502263808c1fe0487fda02f16adcbb1279183
2007-08-30 11:48:31 +00:00
danielk1977
a1644fd863
Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321)
...
FossilOrigin-Name: e38ef81b85feb5bff2ad8448f3438ff0ab36571e
2007-08-29 12:31:25 +00:00
danielk1977
cdc3a6bcbc
Fix bugs in the altermalloc.test and incrblob_err.test scripts. (CVS 4295)
...
FossilOrigin-Name: e5ec17071720a973bbd213a8b23038d3aff25315
2007-08-25 13:09:26 +00:00
drh
ed138fb3bc
All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272)
...
FossilOrigin-Name: 205d0b881d541db65837ce6cf44d58d607635bc2
2007-08-22 22:04:37 +00:00
drh
f3a65f7e44
The malloc.test script now passes all tests with no errors. (CVS 4271)
...
FossilOrigin-Name: db818430e9ea4ef4a4af575784009d5acae785a3
2007-08-22 20:18:21 +00:00