Skip to content

Commit e35d86f

Browse files
authored
Fix rename REDIS_TEST to SERVER_TEST to pass the Daily workflow (#131)
The test flag `REDIS_TEST` has already be changed to `SERVER_TEST` in `.github/workflows/daily.yml`, the name in the src directory need to be changed as well. ```shell run: | sudo apt-get update && sudo apt-get install libc6-dev-i386 make 32bit SERVER_CFLAGS='-Werror -DSERVER_TEST' ``` Signed-off-by: Vitah Lin <vitahlin@gmail.com>
1 parent 4d7fff9 commit e35d86f

28 files changed

Lines changed: 31 additions & 31 deletions

deps/hiredis/sds.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void *hi_sds_malloc(size_t size);
273273
void *hi_sds_realloc(void *ptr, size_t size);
274274
void hi_sds_free(void *ptr);
275275

276-
#ifdef REDIS_TEST
276+
#ifdef SERVER_TEST
277277
int hi_sdsTest(int argc, char *argv[]);
278278
#endif
279279

src/crc64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ uint64_t crc64(uint64_t crc, const unsigned char *s, uint64_t l) {
123123
}
124124

125125
/* Test main */
126-
#ifdef REDIS_TEST
126+
#ifdef SERVER_TEST
127127
#include <stdio.h>
128128

129129
#define UNUSED(x) (void)(x)

src/crc64.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
void crc64_init(void);
77
uint64_t crc64(uint64_t crc, const unsigned char *s, uint64_t l);
88

9-
#ifdef REDIS_TEST
9+
#ifdef SERVER_TEST
1010
int crc64Test(int argc, char *argv[], int flags);
1111
#endif
1212

src/dict.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@ void dictGetStats(char *buf, size_t bufsize, dict *d, int full) {
17551755

17561756
/* ------------------------------- Benchmark ---------------------------------*/
17571757

1758-
#ifdef REDIS_TEST
1758+
#ifdef SERVER_TEST
17591759
#include "testhelp.h"
17601760

17611761
#define UNUSED(V) ((void) V)

src/dict.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ dictStats* dictGetStatsHt(dict *d, int htidx, int full);
249249
void dictCombineStats(dictStats *from, dictStats *into);
250250
void dictFreeStats(dictStats *stats);
251251

252-
#ifdef REDIS_TEST
252+
#ifdef SERVER_TEST
253253
int dictTest(int argc, char *argv[], int flags);
254254
#endif
255255

src/endianconv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ uint64_t intrev64(uint64_t v) {
101101
return v;
102102
}
103103

104-
#ifdef REDIS_TEST
104+
#ifdef SERVER_TEST
105105
#include <stdio.h>
106106

107107
#define UNUSED(x) (void)(x)

src/endianconv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ uint64_t intrev64(uint64_t v);
7171
#define ntohu64(v) intrev64(v)
7272
#endif
7373

74-
#ifdef REDIS_TEST
74+
#ifdef SERVER_TEST
7575
int endianconvTest(int argc, char *argv[], int flags);
7676
#endif
7777

src/intset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ int intsetValidateIntegrity(const unsigned char *p, size_t size, int deep) {
342342
return 1;
343343
}
344344

345-
#ifdef REDIS_TEST
345+
#ifdef SERVER_TEST
346346
#include <sys/time.h>
347347
#include <time.h>
348348

src/intset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ uint32_t intsetLen(const intset *is);
5050
size_t intsetBlobLen(intset *is);
5151
int intsetValidateIntegrity(const unsigned char *is, size_t size, int deep);
5252

53-
#ifdef REDIS_TEST
53+
#ifdef SERVER_TEST
5454
int intsetTest(int argc, char *argv[], int flags);
5555
#endif
5656

src/kvstore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ int kvstoreDictDelete(kvstore *kvs, int didx, const void *key) {
866866
return ret;
867867
}
868868

869-
#ifdef REDIS_TEST
869+
#ifdef SERVER_TEST
870870
#include <stdio.h>
871871
#include "testhelp.h"
872872

0 commit comments

Comments
 (0)