1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +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 committed by Steffen Vogel
parent 5f28fb38e3
commit 66756698d0

View file

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