Module api tests for RM_Call

Adding a test for coverage for RM_Call in a new "misc" unit
to be used for various short simple tests

also solves compilation warnings in redismodule.h and fork.c
This commit is contained in:
Oran Agra
2019-10-24 09:38:52 +03:00
parent c328c807e7
commit 0399b5a27e
7 changed files with 94 additions and 4 deletions

View File

@ -1,6 +1,10 @@
#define REDISMODULE_EXPERIMENTAL_API
#include "redismodule.h"
/* define macros for having usleep */
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#include "redismodule.h"
#include <string.h>
#include <assert.h>
#include <unistd.h>