/ Check-in [a35551a5]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Clear global variable "seconds" before use in walthread.test.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a35551a5305b5160b0eb511da7f8e6fb351ef271
User & Date: drh 2010-05-03 17:24:45
Context
2010-05-03
18:01
Add a test to simulate an OOM during log recovery to walfault.test. check-in: 7ed85e87 user: dan tags: trunk
17:24
Clear global variable "seconds" before use in walthread.test. check-in: a35551a5 user: drh tags: trunk
17:18
Fix a couple of errors in WAL code that can occur in an OOM situation. check-in: 9d3f3736 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/walthread.test.

    21     21   ifcapable !wal             { finish_test ; return }
    22     22   
    23     23   set sqlite_walsummary_mmap_incr 64
    24     24   
    25     25   # How long, in seconds, to run each test for. If a test is set to run for
    26     26   # 0 seconds, it is omitted entirely.
    27     27   #
           28  +unset -nocomplain seconds
    28     29   set seconds(walthread-1) 20
    29     30   set seconds(walthread-2) 20
    30     31   set seconds(walthread-3) 20
    31     32   set seconds(walthread-4) 20
    32     33   set seconds(walthread-5) 1
    33     34   
    34     35   # The parameter is the name of a variable in the callers context. The
................................................................................
   505    506     }
   506    507     puts "Database with large log file recovered. Now running clients..."
   507    508   } -thread T 5 {
   508    509     db eval { SELECT count(*) FROM t1 }
   509    510   }
   510    511   
   511    512   finish_test
   512         -