RDB fuzz test cases

Former-commit-id: 6df4d294220ed914c592f3bd195ae921d6a84cde
This commit is contained in:
John Sully 2019-09-28 17:04:08 -04:00
parent 4db6193052
commit b01cf73999
11 changed files with 17 additions and 0 deletions

13
fuzz/rdb/dict.txt Normal file
View File

@ -0,0 +1,13 @@
="repl-stream-db"
="repl-id"
="repl-offset"
="lua"
="redis-ver"
="ctime"
="used-mem"
="aof-preamble"
="redis-bits"
="mvcc-tstamp"
="keydb-subexpire-key"
="keydb-subexpire-when"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
fuzz/rdb/testcases/set.rdb Normal file

Binary file not shown.

Binary file not shown.

View File

@ -5243,6 +5243,10 @@ int main(int argc, char **argv) {
aeReleaseLock(); //Finally we can dump the lock
moduleReleaseGIL(true);
// If we're just fuzzing then we've already loaded the RDB so just quit successfully
if (strstr(argv[0],"keydb-fuzz-rdb") != NULL)
return EXIT_SUCCESS;
serverAssert(cserver.cthreads > 0 && cserver.cthreads <= MAX_EVENT_LOOPS);
pthread_t rgthread[MAX_EVENT_LOOPS];
for (int iel = 0; iel < cserver.cthreads; ++iel)