/ Check-in [f8ac826f]
Login

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

Overview
Comment:Avoid redefining NDEBUG if the fuzzer is included in an amalagmated source file.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f8ac826f95ae6b7b981e4765d2e65b6839d0eff9
User & Date: drh 2012-02-21 18:35:42
Context
2012-02-23
14:28
Expose the sqlite3_stricmp() interface. Add the SQLITE_FCNTL_PRAGMA file control. check-in: c539cf21 user: drh tags: trunk
2012-02-22
14:45
Begin adding support for SQLITE_FCNTL_PRAGMA. check-in: 5be07904 user: drh tags: file-control-pragma
2012-02-21
18:35
Avoid redefining NDEBUG if the fuzzer is included in an amalagmated source file. check-in: f8ac826f user: drh tags: trunk
18:00
Prevent the fuzzer from ever returning a string longer than 100 bytes. check-in: 969095ca user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/test_fuzzer.c.

   139    139   **
   140    140   ** The maximum ruleset number is 2147483647.  The maximum length of either
   141    141   ** of the strings in the second or third column of the fuzzer data table
   142    142   ** is 50 bytes.  The maximum cost on a rule is 1000.
   143    143   */
   144    144   
   145    145   /* If SQLITE_DEBUG is not defined, disable assert statements. */
   146         -#ifndef SQLITE_DEBUG
          146  +#if !defined(NDEBUG) && !defined(SQLITE_DEBUG)
   147    147   # define NDEBUG
   148    148   #endif
   149    149   
   150    150   #include "sqlite3.h"
   151    151   #include <stdlib.h>
   152    152   #include <string.h>
   153    153   #include <assert.h>