/ Check-in [bc2af8e0]
Login

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

Overview
Comment:Make a couple tests less sensitive to timing.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | testFixes
Files: files | file ages | folders
SHA3-256: bc2af8e0aa28d8d10612ab9464c008a970348b4720bb34d0c546d341e2bc09e0
User & Date: mistachkin 2018-03-16 23:54:12
Context
2018-03-16
23:54
Enable more 'zipfile' tests on Win32. check-in: 49d2566c user: mistachkin tags: testFixes
23:54
Make a couple tests less sensitive to timing. check-in: bc2af8e0 user: mistachkin tags: testFixes
23:53
Fix a duplicate test number and cleanup a bit of Makefile whitespace. check-in: 56d11c25 user: mistachkin tags: testFixes
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/trace3.test.

   125    125     set ::stmtlist(record) {}
   126    126     db trace_v2 trace_v2_record profile
   127    127     execsql {
   128    128       SELECT a, b FROM t1 ORDER BY a;
   129    129     }
   130    130     set stmt [lindex [lindex $::stmtlist(record) 0] 0]
   131    131     set ns [lindex [lindex $::stmtlist(record) 0] 1]
   132         -  list $stmt [expr {$ns >= 0 && $ns <= 1000000}]; # less than 0.001 second
          132  +  list $stmt [expr {$ns >= 0 && $ns <= 9999999}]; # less than 0.010 seconds
   133    133   } {/^-?\d+ 1$/}
   134    134   do_test trace3-4.4 {
   135    135     set ::stmtlist(record) {}
   136    136     db trace_v2 trace_v2_record 2
   137    137     execsql {
   138    138       SELECT a, b FROM t1 ORDER BY a;
   139    139     }
   140    140     set stmt [lindex [lindex $::stmtlist(record) 0] 0]
   141    141     set ns [lindex [lindex $::stmtlist(record) 0] 1]
   142         -  list $stmt [expr {$ns >= 0 && $ns <= 1000000}]; # less than 0.001 second
          142  +  list $stmt [expr {$ns >= 0 && $ns <= 9999999}]; # less than 0.010 seconds
   143    143   } {/^-?\d+ 1$/}
   144    144   
   145    145   do_test trace3-5.1 {
   146    146     set ::stmtlist(record) {}
   147    147     db trace_v2 trace_v2_record row
   148    148     execsql {
   149    149       SELECT a, b FROM t1 ORDER BY a;