/ Check-in [76ac9a78]
Login

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

Overview
Comment:Change tests in pager.test to account for the extra cache hit in the code that updates file change counter. (CVS 1584)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:76ac9a787b42da3bfa94192b26ed48483b5ff189
User & Date: danielk1977 2004-06-14 06:13:06
Context
2004-06-14
08:26
Check the value of the schema cookie before reading the sqlite_master table. (CVS 1585) check-in: 80c299f8 user: danielk1977 tags: trunk
06:13
Change tests in pager.test to account for the extra cache hit in the code that updates file change counter. (CVS 1584) check-in: 76ac9a78 user: danielk1977 tags: trunk
06:03
Ensure the master journal directory is synced. Also, change the master journal format to store journal file names. (CVS 1583) check-in: 73cd0aab user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/pager.test.

     7      7   #    May you find forgiveness for yourself and forgive others.
     8      8   #    May you share freely, never taking more than you give.
     9      9   #
    10     10   #***********************************************************************
    11     11   # This file implements regression tests for SQLite library.  The
    12     12   # focus of this script is page cache subsystem.
    13     13   #
    14         -# $Id: pager.test,v 1.15 2004/04/26 14:10:22 drh Exp $
           14  +# $Id: pager.test,v 1.16 2004/06/14 06:13:06 danielk1977 Exp $
    15     15   
    16     16   
    17     17   set testdir [file dirname $argv0]
    18     18   source $testdir/tester.tcl
    19     19   
    20     20   if {[info commands pager_open]!=""} {
    21     21   db close
................................................................................
   132    132     set v [catch {
   133    133       pager_commit $::p1
   134    134     } msg]
   135    135     lappend v $msg
   136    136   } {0 {}}
   137    137   do_test pager-2.20 {
   138    138     pager_stats $::p1
   139         -} {ref 1 page 1 max 10 size -1 state 1 err 0 hit 0 miss 2 ovfl 0}
          139  +} {ref 1 page 1 max 10 size -1 state 1 err 0 hit 1 miss 2 ovfl 0}
   140    140   do_test pager-2.19 {
   141    141     pager_pagecount $::p1
   142    142   } {1}
   143    143   do_test pager-2.21 {
   144    144     pager_stats $::p1
   145         -} {ref 1 page 1 max 10 size 1 state 1 err 0 hit 0 miss 2 ovfl 0}
          145  +} {ref 1 page 1 max 10 size 1 state 1 err 0 hit 1 miss 2 ovfl 0}
   146    146   do_test pager-2.22 {
   147    147     page_unref $::g1
   148    148   } {}
   149    149   do_test pager-2.23 {
   150    150     pager_stats $::p1
   151         -} {ref 0 page 0 max 10 size -1 state 0 err 0 hit 0 miss 2 ovfl 0}
          151  +} {ref 0 page 0 max 10 size -1 state 0 err 0 hit 1 miss 2 ovfl 0}
   152    152   do_test pager-2.24 {
   153    153     set v [catch {
   154    154       page_get $::p1 1
   155    155     } ::g1]
   156    156     if {$v} {lappend v $::g1}
   157    157     set v
   158    158   } {0}