Fixed unit tests + fixed different compilation flags' combinations so that code compiles and works properly + added unit tests execution into a github actions workflow

This commit is contained in:
Egor Sheremetov 2023-09-27 03:45:58 +02:00
parent ec9beed470
commit 8b073cbd48
8 changed files with 116 additions and 61 deletions

View file

@ -17,7 +17,7 @@
#define SEXP_ONLY_HEADER_SZ (sizeof(int))
#ifndef FULL_INVARIANT_CHECKS
#ifndef DEBUG_VERSION
# define DATA_HEADER_SZ (sizeof(size_t) + sizeof(int))
#else
# define DATA_HEADER_SZ (sizeof(size_t) + sizeof(size_t) + sizeof(int))
@ -44,7 +44,7 @@ typedef struct {
// other utility info (i.e., size for array, number of fields for s-expression)
int data_header;
#ifdef FULL_INVARIANT_CHECKS
#ifdef DEBUG_VERSION
size_t id;
#endif
@ -59,7 +59,7 @@ typedef struct {
// other utility info (i.e., size for array, number of fields for s-expression)
int data_header;
#ifdef FULL_INVARIANT_CHECKS
#ifdef DEBUG_VERSION
size_t id;
#endif