/ Check-in [1d5e744c]
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:Modify capi3.test and capi3c.test so that they work with SQLITE_OMIT_AUTORESET builds.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1d5e744cc645150ccaa7256663146fc7b8540bd5
User & Date: dan 2012-04-03 18:33:43
References
2012-04-03
19:43
Cherrypick commit [1d5e744cc6] from the trunk in order to avoid leaving a file-descriptor open in test scripts capi3.test and capi3c.test. This is the version of SQLite that ships by default on the original Mountain Lion release. check-in: 86b8481b user: dan tags: apple-osx, mountain-lion
Context
2012-04-03
18:34
Do not run attempt to run test file fts4merge3.test unless the build includes FTS. check-in: 0506bf86 user: dan tags: trunk
18:33
Modify capi3.test and capi3c.test so that they work with SQLITE_OMIT_AUTORESET builds. check-in: 1d5e744c user: dan tags: trunk
17:43
Modify the integrity-check code to reduce the size of the large allocation from 4 bytes to 1 bit for each page in the database file. check-in: fa3a498d user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/capi3.test.

   897    897   } {0 {}}
   898    898   do_test capi3-11.9.3 {
   899    899     sqlite3_get_autocommit $DB
   900    900   } 1
   901    901   do_test capi3-11.10 {
   902    902     sqlite3_step $STMT
   903    903   } {SQLITE_ERROR}
          904  +ifcapable !autoreset {
          905  +  # If SQLITE_OMIT_AUTORESET is defined, then the statement must be
          906  +  # reset() before it can be passed to step() again.
          907  +  do_test capi3-11.11a { sqlite3_step $STMT } {SQLITE_MISUSE}
          908  +  do_test capi3-11.11b { sqlite3_reset $STMT } {SQLITE_ABORT}
          909  +}
   904    910   do_test capi3-11.11 {
   905    911     sqlite3_step $STMT
   906    912   } {SQLITE_ROW}
   907    913   do_test capi3-11.12 {
   908    914     sqlite3_step $STMT
   909    915     sqlite3_step $STMT
   910    916   } {SQLITE_DONE}

Changes to test/capi3c.test.

   852    852   } {0 {}}
   853    853   do_test capi3c-11.9.3 {
   854    854     sqlite3_get_autocommit $DB
   855    855   } 1
   856    856   do_test capi3c-11.10 {
   857    857     sqlite3_step $STMT
   858    858   } {SQLITE_ABORT}
          859  +ifcapable !autoreset {
          860  +  # If SQLITE_OMIT_AUTORESET is defined, then the statement must be
          861  +  # reset() before it can be passed to step() again.
          862  +  do_test capi3-11.11a { sqlite3_step $STMT } {SQLITE_MISUSE}
          863  +  do_test capi3-11.11b { sqlite3_reset $STMT } {SQLITE_ABORT}
          864  +}
   859    865   do_test capi3c-11.11 {
   860    866     sqlite3_step $STMT
   861    867   } {SQLITE_ROW}
   862    868   do_test capi3c-11.12 {
   863    869     sqlite3_step $STMT
   864    870     sqlite3_step $STMT
   865    871   } {SQLITE_DONE}