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/listpack.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/listpack.c')
-rw-r--r-- | src/listpack.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/listpack.c b/src/listpack.c index 522eb6de6..d876751e5 100644 --- a/src/listpack.c +++ b/src/listpack.c @@ -1375,6 +1375,7 @@ unsigned int lpRandomPairsUnique(unsigned char *lp, unsigned int count, listpack #include <sys/time.h> #include "adlist.h" #include "sds.h" +#include "testhelp.h" #define UNUSED(x) (void)(x) #define TEST(name) printf("test — %s\n", name); @@ -1499,15 +1500,15 @@ static int lpValidation(unsigned char *p, unsigned int head_count, void *userdat return ret; } -int listpackTest(int argc, char *argv[], int accurate) { +int listpackTest(int argc, char *argv[], int flags) { UNUSED(argc); UNUSED(argv); - UNUSED(accurate); int i; unsigned char *lp, *p, *vstr; int64_t vlen; unsigned char intbuf[LP_INTBUF_SIZE]; + int accurate = (flags & REDIS_TEST_ACCURATE); TEST("Create int list") { lp = createIntList(); |