/ Check-in [24d9fbc1]
Login

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

Overview
Comment:Disable ALWAYS and NEVER when compiled with SQLITE_MUTATION_TEST.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 24d9fbc1d0f99b90577ecd6edcd3bc1abc76633f
User & Date: drh 2016-05-12 19:17:09
Context
2016-05-13
04:24
Additional debugging and tracing logic for pcache.c, turned off by default using an "#if 0". check-in: 32a62e3b user: drh tags: trunk
2016-05-12
19:17
Disable ALWAYS and NEVER when compiled with SQLITE_MUTATION_TEST. check-in: 24d9fbc1 user: drh tags: trunk
19:05
Simplification of the sqlite3FaultSim() call inside of sqlite3PagerCommitPhaseOne(). check-in: 1b0f4cc3 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/sqliteInt.h.

   407    407   **
   408    408   ** In other words, ALWAYS and NEVER are added for defensive code.
   409    409   **
   410    410   ** When doing coverage testing ALWAYS and NEVER are hard-coded to
   411    411   ** be true and false so that the unreachable code they specify will
   412    412   ** not be counted as untested code.
   413    413   */
   414         -#if defined(SQLITE_COVERAGE_TEST)
          414  +#if defined(SQLITE_COVERAGE_TEST) || defined(SQLITE_MUTATION_TEST)
   415    415   # define ALWAYS(X)      (1)
   416    416   # define NEVER(X)       (0)
   417    417   #elif !defined(NDEBUG)
   418    418   # define ALWAYS(X)      ((X)?1:(assert(0),0))
   419    419   # define NEVER(X)       ((X)?(assert(0),1):0)
   420    420   #else
   421    421   # define ALWAYS(X)      (X)