/ Check-in [36295dce]
Login

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

Overview
Comment:Fix dbfuzz2 so that it will compile on systems that do not support getrlimit().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 36295dcebcb5487f2a462eabb41900ac28b8e839898ef0fae0aa4730bf9b0671
User & Date: drh 2019-07-08 18:35:51
Context
2019-07-09
12:03
Fix a test script problem in windowfault.test. check-in: 47010bf1 user: dan tags: trunk
2019-07-08
21:32
Merge recent trunk enhancements into the reuse-schema branch. check-in: fae92fee user: drh tags: reuse-schema
21:19
Merge all enhancements from trunk into the wal2 branch. check-in: dcbcbc2a user: drh tags: wal2
21:12
Merge enhancements from trunk into the begin-concurrent-pnu branch. check-in: 05aa93af user: drh tags: begin-concurrent-pnu
21:06
Merge recent trunk enhancements into the begin-concurrent branch. check-in: 7fff0803 user: drh tags: begin-concurrent
20:59
Merge recent enhancements from trunk into apple-osx. check-in: de88ed86 user: drh tags: apple-osx
18:35
Fix dbfuzz2 so that it will compile on systems that do not support getrlimit(). check-in: 36295dce user: drh tags: trunk
13:45
Fix an assert() that [28196d89] caused to fail. check-in: 8fb0c6d5 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/dbfuzz2.c.

   373    373       int nIn;
   374    374       pIn = readFile(argv[i], &nIn);
   375    375       if( pIn ){
   376    376         LLVMFuzzerTestOneInput((const uint8_t*)pIn, (size_t)nIn);
   377    377         free(pIn);
   378    378       }
   379    379     }
          380  +#ifdef RUSAGE_SELF
   380    381     if( eVerbosity>0 ){
   381    382       struct rusage x;
   382    383       printf("SQLite %s\n", sqlite3_sourceid());
   383    384       memset(&x, 0, sizeof(x));
   384    385       if( getrusage(RUSAGE_SELF, &x)==0 ){
   385    386         printf("Maximum RSS = %ld KB\n", x.ru_maxrss);
   386    387       }
   387    388     }
          389  +#endif
   388    390     return 0;
   389    391   }
   390    392   #endif /*STANDALONE*/