diff options
author | sundb <sundbcn@gmail.com> | 2021-11-16 14:55:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 08:55:10 +0200 |
commit | e725d737fb2ee492fbcd04bb7deb1696d7e182d1 (patch) | |
tree | b84ce135e03c4e9708ec250671c95b5f9130f5a8 /src/quicklist.c | |
parent | aba70df48f2ca8a567d2c11d34fb768bf764c487 (diff) | |
download | redis-e725d737fb2ee492fbcd04bb7deb1696d7e182d1.tar.gz |
Add --large-memory flag for REDIS_TEST to enable tests that consume more than 100mb (#9784)
This is a preparation step in order to add a new test in quicklist.c see #9776
Diffstat (limited to 'src/quicklist.c')
-rw-r--r-- | src/quicklist.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/quicklist.c b/src/quicklist.c index 384de0e91..b1051bd9b 100644 --- a/src/quicklist.c +++ b/src/quicklist.c @@ -1720,6 +1720,7 @@ void quicklistBookmarksClear(quicklist *ql) { #ifdef REDIS_TEST #include <stdint.h> #include <sys/time.h> +#include "testhelp.h" #define yell(str, ...) printf("ERROR! " str "\n\n", __VA_ARGS__) @@ -1902,11 +1903,11 @@ static char *genstr(char *prefix, int i) { } /* main test, but callable from other files */ -int quicklistTest(int argc, char *argv[], int accurate) { +int quicklistTest(int argc, char *argv[], int flags) { UNUSED(argc); UNUSED(argv); - UNUSED(accurate); + int accurate = (flags & REDIS_TEST_ACCURATE); unsigned int err = 0; int optimize_start = -(int)(sizeof(optimization_level) / sizeof(*optimization_level)); |