/ Check-in [c86e46f4]
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:Update test file mutex1.test to account for [e3b500fb5d].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c86e46f4fd8f485fa1d34c70e17ea3aa1b334ce3
User & Date: dan 2011-01-26 15:23:23
Context
2011-01-26
19:46
Update all built-in VFSes to return SQLITE_OK for the SQLITE_FCNTL_SYNC_OMITTED file-control operation. Also change the xFileControl methods to return SQLITE_NOTFOUND for unrecognized operation codes. check-in: 6f2c72a0 user: drh tags: trunk
15:23
Update test file mutex1.test to account for [e3b500fb5d]. check-in: c86e46f4 user: dan tags: trunk
13:28
More mutexes around another sqlite3StatusAdd() call. check-in: e3b500fb user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/mutex1.test.

99
100
101
102
103
104
105

106
107
108

109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#
ifcapable threadsafe&&shared_cache {
  set enable_shared_cache [sqlite3_enable_shared_cache 1]
  foreach {mode mutexes} {
    singlethread {}
    multithread  {
      fast static_lru static_master static_mem static_open static_prng 

    }
    serialized  {
      fast recursive static_lru static_master static_mem static_open static_prng

    }
  } {

    # Permutation "memsubsys1" configures a block of PAGECACHE memory. In
    # multi-threaded and serialized modes, this causes SQLite to use the 
    # STATIC_PMEM mutex as well.
    #
    if {[permutation] == "memsubsys1" && $mode != "singlethread"} {
      lappend mutexes static_pmem
    }

    do_test mutex1.2.$mode.1 {
      catch {db close}
      sqlite3_shutdown
      sqlite3_config $mode
    } SQLITE_OK

    do_test mutex1.2.$mode.2 {







>


|
>



<
<
<
<
<
<
<
<







99
100
101
102
103
104
105
106
107
108
109
110
111
112
113








114
115
116
117
118
119
120
#
ifcapable threadsafe&&shared_cache {
  set enable_shared_cache [sqlite3_enable_shared_cache 1]
  foreach {mode mutexes} {
    singlethread {}
    multithread  {
      fast static_lru static_master static_mem static_open static_prng 
      static_pmem
    }
    serialized  {
      fast recursive static_lru static_master static_mem static_open 
      static_prng static_pmem
    }
  } {









    do_test mutex1.2.$mode.1 {
      catch {db close}
      sqlite3_shutdown
      sqlite3_config $mode
    } SQLITE_OK

    do_test mutex1.2.$mode.2 {