/ Check-in [d6f6c87c]
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:Disable the DBSTATUS_CACHE_USED_SHARED tests on mac when memsys3/5 is disabled due to differences in the allocation sizes for the Darwin memory allocator.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d6f6c87c9c0acf609a9d5bea818bb7a5437109a1
User & Date: drh 2016-07-25 12:10:25
Context
2016-07-25
14:20
Changes to test scripts to get them all running on OpenBSD. check-in: 9e7bedee user: drh tags: trunk
12:10
Disable the DBSTATUS_CACHE_USED_SHARED tests on mac when memsys3/5 is disabled due to differences in the allocation sizes for the Darwin memory allocator. check-in: d6f6c87c user: drh tags: trunk
12:01
Update the vacuummem.test script so that it works on mac as well as on linux. check-in: ea7fb98b user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/dbstatus.test.

   375    375     }
   376    376   }
   377    377   
   378    378   #-------------------------------------------------------------------------
   379    379   # The following tests focus on DBSTATUS_CACHE_USED_SHARED
   380    380   #
   381    381   ifcapable shared_cache {
   382         -  proc do_cacheused_test {tn db res} {
   383         -    set cu [sqlite3_db_status $db SQLITE_DBSTATUS_CACHE_USED 0]
   384         -    set pcu [sqlite3_db_status $db SQLITE_DBSTATUS_CACHE_USED_SHARED 0]
   385         -    set cu [lindex $cu 1]
   386         -    set pcu [lindex $pcu 1]
   387         -    uplevel [list do_test $tn [list list $cu $pcu] "#/$res/"]
   388         -  }
   389         -  reset_db
   390         -  sqlite3 db file:test.db?cache=shared
   391         -
   392         -  do_execsql_test 4.0 {
   393         -    PRAGMA auto_vacuum=NONE;
   394         -    CREATE TABLE t1(a, b, c);
   395         -    INSERT INTO t1 VALUES(1, 2, 3);
   396         -  }
   397         -  do_cacheused_test 4.0.1 db { 4568 4568 }
   398         -  do_execsql_test 4.1 {
   399         -    CREATE TEMP TABLE tt(a, b, c);
   400         -    INSERT INTO tt VALUES(1, 2, 3);
   401         -  }
   402         -  do_cacheused_test 4.1.1 db { 9000 9000 }
   403         -
   404         -  sqlite3 db2 file:test.db?cache=shared
   405         -  do_cacheused_test 4.2.1 db2 { 4568 2284 }
   406         -  do_cacheused_test 4.2.2 db { 9000 6716 }
   407         -  db close
   408         -  do_cacheused_test 4.2.3 db2 { 4568 4568 }
   409         -  sqlite3 db file:test.db?cache=shared
   410         -  do_cacheused_test 4.2.4 db2 { 4568 2284 }
   411         -  db2 close
          382  +  if {[permutation]=="memsys3"
          383  +      || [permutation]=="memsys5"
          384  +      || $::tcl_platform(os)!="Darwin"} {
          385  +    proc do_cacheused_test {tn db res} {
          386  +      set cu [sqlite3_db_status $db SQLITE_DBSTATUS_CACHE_USED 0]
          387  +      set pcu [sqlite3_db_status $db SQLITE_DBSTATUS_CACHE_USED_SHARED 0]
          388  +      set cu [lindex $cu 1]
          389  +      set pcu [lindex $pcu 1]
          390  +      uplevel [list do_test $tn [list list $cu $pcu] "#/$res/"]
          391  +    }
          392  +    reset_db
          393  +    sqlite3 db file:test.db?cache=shared
          394  +  
          395  +    do_execsql_test 4.0 {
          396  +      PRAGMA auto_vacuum=NONE;
          397  +      CREATE TABLE t1(a, b, c);
          398  +      INSERT INTO t1 VALUES(1, 2, 3);
          399  +    }
          400  +    do_cacheused_test 4.0.1 db { 4568 4568 }
          401  +    do_execsql_test 4.1 {
          402  +      CREATE TEMP TABLE tt(a, b, c);
          403  +      INSERT INTO tt VALUES(1, 2, 3);
          404  +    }
          405  +    do_cacheused_test 4.1.1 db { 9000 9000 }
          406  +  
          407  +    sqlite3 db2 file:test.db?cache=shared
          408  +    do_cacheused_test 4.2.1 db2 { 4568 2284 }
          409  +    do_cacheused_test 4.2.2 db { 9000 6716 }
          410  +    db close
          411  +    do_cacheused_test 4.2.3 db2 { 4568 4568 }
          412  +    sqlite3 db file:test.db?cache=shared
          413  +    do_cacheused_test 4.2.4 db2 { 4568 2284 }
          414  +    db2 close
          415  +  }
   412    416   }
   413    417   
   414    418   finish_test