1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00

Supress checkcpp unknownMacro error foor tests in queue unit test

Signed-off-by: Leonardo Carreras <leonardo.carreras@eonerc.rwth-aachen.de>
This commit is contained in:
Leonardo Carreras 2025-02-04 12:18:55 +00:00
parent 747f0ede13
commit 75704d91a7

View file

@ -205,6 +205,7 @@ void *producer_consumer_many(void *ctx) {
} }
#endif // _POSIX_BARRIERS #endif // _POSIX_BARRIERS
// cppcheck-suppress unknownMacro
Test(queue, single_threaded, .init = init_memory) { Test(queue, single_threaded, .init = init_memory) {
int ret; int ret;
struct param p; struct param p;
@ -226,6 +227,7 @@ Test(queue, single_threaded, .init = init_memory) {
} }
#if defined(_POSIX_BARRIERS) && _POSIX_BARRIERS > 0 #if defined(_POSIX_BARRIERS) && _POSIX_BARRIERS > 0
// cppcheck-suppress unknownMacro
ParameterizedTestParameters(queue, multi_threaded) { ParameterizedTestParameters(queue, multi_threaded) {
static struct param params[] = {{.iter_count = 1 << 12, static struct param params[] = {{.iter_count = 1 << 12,
.queue_size = 1 << 9, .queue_size = 1 << 9,
@ -261,6 +263,7 @@ ParameterizedTestParameters(queue, multi_threaded) {
return cr_make_param_array(struct param, params, ARRAY_LEN(params)); return cr_make_param_array(struct param, params, ARRAY_LEN(params));
} }
// cppcheck-suppress unknownMacro
ParameterizedTest(struct param *p, queue, multi_threaded, .timeout = 20, ParameterizedTest(struct param *p, queue, multi_threaded, .timeout = 20,
.init = init_memory) { .init = init_memory) {
int ret, cycpop; int ret, cycpop;
@ -319,6 +322,7 @@ ParameterizedTest(struct param *p, queue, multi_threaded, .timeout = 20,
} }
#endif // _POSIX_BARRIERS #endif // _POSIX_BARRIERS
// cppcheck-suppress unknownMacro
Test(queue, init_destroy, .init = init_memory) { Test(queue, init_destroy, .init = init_memory) {
int ret; int ret;
struct CQueue q; struct CQueue q;