summaryrefslogtreecommitdiff
path: root/src/testhelp.h
diff options
context:
space:
mode:
authorsundb <sundbcn@gmail.com>2021-11-16 14:55:10 +0800
committerGitHub <noreply@github.com>2021-11-16 08:55:10 +0200
commite725d737fb2ee492fbcd04bb7deb1696d7e182d1 (patch)
treeb84ce135e03c4e9708ec250671c95b5f9130f5a8 /src/testhelp.h
parentaba70df48f2ca8a567d2c11d34fb768bf764c487 (diff)
downloadredis-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/testhelp.h')
-rw-r--r--src/testhelp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/testhelp.h b/src/testhelp.h
index c6c1b55bf..394a9a6c0 100644
--- a/src/testhelp.h
+++ b/src/testhelp.h
@@ -39,8 +39,12 @@
#ifndef __TESTHELP_H
#define __TESTHELP_H
-int __failed_tests = 0;
-int __test_num = 0;
+#define REDIS_TEST_ACCURATE (1<<0)
+#define REDIS_TEST_LARGE_MEMORY (1<<1)
+
+extern int __failed_tests;
+extern int __test_num;
+
#define test_cond(descr,_c) do { \
__test_num++; printf("%d - %s: ", __test_num, descr); \
if(_c) printf("PASSED\n"); else {printf("FAILED\n"); __failed_tests++;} \