05f7c19a6e
Test coverage improvements. Over 90% of branches are now executed in
...
both directions. (CVS 3820)
FossilOrigin-Name: a776d93ccae3bfa6e992cdd1387571dd21561f98
2007-04-06 02:32:33 +00:00
77a2a5e73c
Changes to increase test coverage. (CVS 3819)
...
FossilOrigin-Name: fd4da6b13499af2397d52cb0f25f8ff6f2192431
2007-04-06 01:04:39 +00:00
8c4d3a6b42
Make sure the sqlite3BtreePrevious() routine terminates properly if the
...
table is deleted out from under it. Ticket #2286 . This bug was discovered
while trying to increase test coverage from 98.5% to 99% - once again
showing the value of full coverage testing. (CVS 3818)
FossilOrigin-Name: bebf8d2f886ed9fe1b96e4cb11ab3de2f2f7d2c8
2007-04-06 01:03:32 +00:00
e180dd9396
Always truncate the pager cache when truncating the database file. Also reorganize the code to check the change-counter after first obtaining a shared lock. (CVS 3814)
...
FossilOrigin-Name: 9dc4100eff71be579480ce7939c7da712d28f0ae
2007-04-05 17:15:52 +00:00
c551edc2c3
Avoid attempting to reclaim memory from in-memory databases in sqlite3_release_memory(). (CVS 3812)
...
FossilOrigin-Name: c20f7563c0ffa1df47df5464f1f1cc4703ffa9b4
2007-04-05 13:12:13 +00:00
7c4ac0c555
Improvements to coverage testing. (CVS 3810)
...
FossilOrigin-Name: 38af156da83a8469080ddb75a9a286be33ff6bef
2007-04-05 11:25:58 +00:00
2026cefaf8
Zero cached pages located beyond the end of the file before returning them. Ticket #2285 . (CVS 3808)
...
FossilOrigin-Name: 5180810eeaa3dfe3d934af0732a920ae117ec69f
2007-04-05 05:46:14 +00:00
5f9c1a2cbd
Test coverage improvements. (CVS 3807)
...
FossilOrigin-Name: 25f49acc5662ed8dd321b83a60aeeab93a37e129
2007-04-04 01:27:44 +00:00
3fb79c8346
Add Tcl (flush) commands to exclusive2.test, which is failing on some systems but not others. (CVS 3806)
...
FossilOrigin-Name: 9e004c519a30257fe3230ac7af630d296e139c9e
2007-04-03 16:13:51 +00:00
8d96eb0fac
Add a different form of I/O tests. So far has failed to expose new bugs. (CVS 3802)
...
FossilOrigin-Name: 9e1295428f476dba21c28149c7983f66a9134559
2007-04-02 16:46:23 +00:00
aeba431fa9
Cover an extra case in sqlite3PagerMovepage(). (CVS 3796)
...
FossilOrigin-Name: 7313688bd03141381067c36800edf1621a2ea05e
2007-04-02 14:19:16 +00:00
cd1aa9000f
Fix for #2281 . This was a problem with the test-case only. (CVS 3795)
...
FossilOrigin-Name: c036db6251ca4671fc3388a4f37955c18adeca1d
2007-04-02 12:29:01 +00:00
ead8e3f45e
Cover a corrupt-db case in pager.c. (CVS 3794)
...
FossilOrigin-Name: 84077fa1602756339a262bc4ab51b6b487edc637
2007-04-02 12:28:27 +00:00
08d31a2a6d
Correctly handle the obscure case of a read-only hot-journal file. (CVS 3791)
...
FossilOrigin-Name: 4d8c6bf44ec00ec04e615983cb33425ca2c3998a
2007-04-02 11:08:58 +00:00
241687280b
Fix a resource leak introduced by the change-counter optimisation. Also add some test coverage. (CVS 3790)
...
FossilOrigin-Name: ba0538a4977aefd6645554f1989f0a98b540b9cd
2007-04-02 05:07:47 +00:00
dd92431a03
Improvements to the output of the speed tests. (CVS 3785)
...
FossilOrigin-Name: 1a4d8024b06488f17831b5d3d47e41c5f1134800
2007-03-31 22:34:16 +00:00
b3738b6c85
Improved test coverage for printf.c. (CVS 3780)
...
FossilOrigin-Name: c2badb208ff1207a1471410965947893b070ea50
2007-03-31 15:02:49 +00:00
393f068912
More coverage for pager.c. (CVS 3778)
...
FossilOrigin-Name: 665b119a241a5a95f236b3ace1b25fc18ae6f0a3
2007-03-31 10:00:48 +00:00
331e8d6216
Remove vestiges of SQLITE_PROTOCOL from the test scripts. (CVS 3774)
...
FossilOrigin-Name: e5e8d56397acf041aeaf5361381eb22eb1554759
2007-03-30 20:46:13 +00:00
3546947df3
Coverage testing for a few lines in pager.c. (CVS 3770)
...
FossilOrigin-Name: c1aca18fad35be60066a08f5bd09772d24375af6
2007-03-30 18:21:52 +00:00
a817e42a21
Get the memleak.test script working again after recent changes. (CVS 3768)
...
FossilOrigin-Name: cd6ca078e3402f06836b6b510a4a431f576f7219
2007-03-30 17:17:51 +00:00
95b289b684
Coverage tests for some pragmas. (CVS 3767)
...
FossilOrigin-Name: eec7ab63beed875a3b16c3bf8d28ac4f296dfb4c
2007-03-30 17:11:12 +00:00
369339db34
Always enable exclusive access mode for TEMP databases. This cannot be
...
changed. The locking_mode pragma has not effect on the TEMP database. (CVS 3766)
FossilOrigin-Name: 04d3b9098ed06d5be24253edde50ea61b4641df8
2007-03-30 16:01:55 +00:00
780b1d9416
Coverage improvements for where.c. (CVS 3764)
...
FossilOrigin-Name: 7e0aa964129612e2bad6fa45139d124f19cacd48
2007-03-30 14:56:34 +00:00
073d3efae4
Avoid using the "clock" command in test scripts since it is a proc in Tcl8.5
...
and is thus not available to testfixture. (CVS 3760)
FossilOrigin-Name: 339941d83ae397d69084f41483afb1ea44d44967
2007-03-30 13:01:32 +00:00
935ed5eafd
Test coverage a few extra lines in where.c. (CVS 3756)
...
FossilOrigin-Name: ea49ddf64aa6073b8018dc2faaf199704d359412
2007-03-30 09:13:13 +00:00
b5584c0c69
Extra test cases to improve coverage of main.c. (CVS 3755)
...
FossilOrigin-Name: 19fc3d78962d225d42372b9298be5921ec1fc8a1
2007-03-30 07:10:50 +00:00
06c69d2ed6
Buffer updates per-transaction rather than per-update. If lots of
...
updates happen within a single transaction, there was a lot of wasted
encode/decode overhead due to segment merges. This code buffers
updates in memory and writes out larger level-0 segments. It only
works when documents are presented in ascending order by docid.
Comparing a test set running 100 documents per transaction, the total
runtime is cut almost in half. (CVS 3751)
FossilOrigin-Name: 0229cba69698ab4b44f8583ef50a87c49422f8ec
2007-03-29 18:41:03 +00:00
2ecad3b443
Make sure the strftime() date conversions put in leading zeros correctly.
...
Ticket #2276 . (CVS 3749)
FossilOrigin-Name: e853067ec4db3eedfb4adcdd4172de2c55b9ac58
2007-03-29 17:57:21 +00:00
69b637b56b
Add a couple of test cases to improve coverage testing. (CVS 3747)
...
FossilOrigin-Name: 0b22ce3637f87c453084c5bd994b6b19a0b014c0
2007-03-29 17:07:52 +00:00
194f8972d5
Don't call ctype functions on hi-bit chars. Some platforms raise
...
assertions when this occurs, and it's almost certainly not the right
thing to do in the first place. (CVS 3746)
FossilOrigin-Name: f6c3abdc6c5e916e5366ba28fb1cd06ca3554303
2007-03-29 16:30:38 +00:00
a713f2c331
Explicitly test some error cases that up until now have not been checked. (CVS 3742)
...
FossilOrigin-Name: f26b014109b1b20367044c5d3fcb347af73d07aa
2007-03-29 12:19:11 +00:00
95bad4c751
Improvements to the XFER Optimization of the INSERT statement. (CVS 3736)
...
FossilOrigin-Name: 53fff7d1f2f829010a2641c7738538b3155da4b2
2007-03-28 18:04:10 +00:00
72e8fa42f9
Correctly handle NULLs in IN operators. Ticket #2273 .
...
The changes in where.c and in the WhereLevel.aInLoop structure are
not strictly necessary to fix this problem - they just make the code
easier to read. Only the change in OP_Next/OP_Prev operator of vdbe.c
is required. (CVS 3735)
FossilOrigin-Name: 26348556d824c032851e409ac510cddb55c200bf
2007-03-28 14:30:06 +00:00
600e46a021
Fix an memory allocation error revealed by malloc3.test. (CVS 3733)
...
FossilOrigin-Name: 0f7fdb022ca7c94f7d264192e18b6e2bd1e8cff4
2007-03-28 01:59:33 +00:00
979f38e5ee
Test handling of IO errors that occur in OsDelete() or OsTruncate() operations. Also use an anonymous file for temporary storage during a VACUUM. (CVS 3729)
...
FossilOrigin-Name: b24a6e7b024c8b9a0b6fd15bd8f247e458781ca2
2007-03-27 16:19:51 +00:00
91c58e23b2
Get the -DSQLITE_OMIT_XFER_OPT option working. Run speed tests on a full
...
regression. Add the script for generating sqlite3.c. (CVS 3723)
FossilOrigin-Name: 42c038518c4ba0ef827a5717d450f95165b3c729
2007-03-27 12:04:04 +00:00
45068f4b5c
Set the same random seed for the speed tests. (CVS 3721)
...
FossilOrigin-Name: 8fe317054982969ad539cdbf1b996b97d86ec4f2
2007-03-26 16:30:15 +00:00
341a91c672
Run some malloc() tests with exclusive-access mode. (CVS 3720)
...
FossilOrigin-Name: 9ebba469023723652c4dbba3d9982a64a1fb144f
2007-03-26 16:13:58 +00:00
e4dd73b4fa
Avoid unnecessary calls to pager_unwritelock() when in exclusive-access mode.
...
Add the speed2.test script to the test suite. (CVS 3718)
FossilOrigin-Name: ab53f5086334ea2f6c20c8f9d043baff39fae8d7
2007-03-26 13:48:12 +00:00
c5859718af
Run some malloc() tests with exclusive-access mode. (CVS 3717)
...
FossilOrigin-Name: 127454903764daff17390941a002f527ee2ffc87
2007-03-26 12:26:27 +00:00
ded6f4b2fe
Add some tests and fixes surrounding exclusive-access mode and the pager change-counter. (CVS 3716)
...
FossilOrigin-Name: 72cb2e1a73cd09d32900bb473377f66ff55058fb
2007-03-26 10:27:18 +00:00
334cdb63b0
Some fixes and test cases for exclusive access mode. (CVS 3714)
...
FossilOrigin-Name: 899e60707bea0fabab2ff3ac8a3fbb676a539120
2007-03-26 08:05:12 +00:00
6d54da05ec
Add the sqlite3_prepare_v2 and sqlite3_prepare16_v2 APIs to the loadable
...
extension interface. (CVS 3713)
FossilOrigin-Name: f02ba56d5c6bbd57682a6bb57e9f92021dfb066e
2007-03-25 19:08:46 +00:00
414834686c
Changes for exclusive access mode. There are still some bugs. (CVS 3712)
...
FossilOrigin-Name: b6c700370be29db2b974f9abd719c3e56abf8058
2007-03-24 16:45:04 +00:00
e277be0545
Discard the contents of the pager-cache only when the change-counter indicates that it is stale. (CVS 3711)
...
FossilOrigin-Name: 07b56965f3227c9f78680728b955395295c4aa49
2007-03-23 18:12:06 +00:00
a8553141c9
Add some test cases simulating crashes with various storage medium sector sizes. (CVS 3704)
...
FossilOrigin-Name: c3c5f658cf9c69b6e81e63fbde5dd0a854be9fc7
2007-03-19 15:04:54 +00:00
b94bf855b2
Fix some problems with test cases in shared_err.test. Also a real bug causing a segfault after an IO error in pager.c. (CVS 3703)
...
FossilOrigin-Name: 9f62ef1ec385d9f1a1913439dc4c2d710373f12a
2007-03-19 13:53:37 +00:00
b472117c11
Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700)
...
FossilOrigin-Name: 5752d84d374205e011d49b0221d6237967fe0743
2007-03-19 05:54:48 +00:00
309b338673
Added TRIM, LTRIM, and RTRIM functions. (CVS 3698)
...
FossilOrigin-Name: 6fe13eeade4fc7099fbda1e6520640927c08debc
2007-03-17 17:52:42 +00:00