/ Check-in [bfa61e78]
Login

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

Overview
Comment:Update a test in io.test to account for [05f98d4eec].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bfa61e781cb442be641486e7e55a1518e888d830
User & Date: dan 2012-05-01 14:21:57
Context
2012-05-07
18:10
Merge Windows directory checking changes to trunk. check-in: a4555a53 user: mistachkin tags: trunk
13:15
Do not do the AV retry loop on open if the file that is attempting to be opened is really a directory. check-in: 03875633 user: drh tags: win-check-dir
2012-05-05
01:03
Merge the latest trunk changes into the apple-osx branch. check-in: 2a99c007 user: drh tags: apple-osx
2012-05-04
23:31
Update the sessions branch with all the latest changes from trunk. check-in: 0f347fbf user: drh tags: sessions
23:11
Sync the latest trunk changes into the winRT branch. check-in: be4ab188 user: drh tags: winrt
2012-05-01
14:21
Update a test in io.test to account for [05f98d4eec]. check-in: bfa61e78 user: dan tags: trunk
2012-04-27
16:38
Fix a minor deviation from the coding style guidelines. check-in: 1e51bffe user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/io.test.

   141    141   # Set the device-characteristic mask to include the SQLITE_IOCAP_ATOMIC,
   142    142   # then do another INSERT similar to the one in io-2.2. This should
   143    143   # only write 1 page and require a single fsync().
   144    144   # 
   145    145   # The single fsync() is the database file. Only one page is reported as
   146    146   # written because page 1 - the change-counter page - is written using
   147    147   # an out-of-band method that bypasses the write counter.
          148  +#
          149  +# UPDATE: As of [05f98d4eec] (adding SQLITE_DBSTATUS_CACHE_WRITE), the
          150  +# second write is also counted. So this now reports two writes and a
          151  +# single fsync.
   148    152   #
   149    153   sqlite3_simulate_device -char atomic
   150    154   do_test io-2.3 {
   151    155     execsql { INSERT INTO abc VALUES(3, 4) }
   152    156     list [nWrite db] [nSync]
   153         -} {1 1}
          157  +} {2 1}
   154    158   
   155    159   # Test that the journal file is not created and the change-counter is
   156    160   # updated when the atomic-write optimization is used.
   157    161   #
   158    162   do_test io-2.4.1 {
   159    163     execsql {
   160    164       BEGIN;