Skip to content
Permalink
Browse files

test/msgq: adjust overflow test for 64-bit targets

This is testing size_mul_overflow() in z_impl_k_msgq_alloc_init() so
make sure OVERFLOW_SIZE_MSG is large enough even on 64-bit targets.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
  • Loading branch information...
Nicolas Pitre authored and nashif committed Jul 4, 2019
1 parent d017a5a commit 922c7ec546d05c699d1f5899ee5c52d9fe4cd9e8
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/kernel/msgq/msgq_api/src/test_msgq.h
@@ -10,12 +10,13 @@
#include <zephyr.h>
#include <irq_offload.h>
#include <ztest.h>
#include <limits.h>

#define TIMEOUT 100
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE)
#define MSG_SIZE 4
#define MSGQ_LEN 2
#define MSG0 0xABCD
#define MSG1 0x1234
#define OVERFLOW_SIZE_MSG 0xDEADBEEF
#define OVERFLOW_SIZE_MSG SIZE_MAX
#endif /* __TEST_MSGQ_H__ */

0 comments on commit 922c7ec

Please sign in to comment.
You can’t perform that action at this time.