tests: lib: cbprintf_package: Add CBPRINTF_MUST_RUNTIME_PACKAGE test
Extended test to cover CBPRINTF_MUST_RUNTIME_PACKAGE macro. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
604c9ac231
commit
0bc3bee738
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ static void unpack(const char *desc, struct out_buffer *buf,
|
|||
}
|
||||
|
||||
#define TEST_PACKAGING(fmt, ...) do { \
|
||||
snprintf(compare_buf, sizeof(compare_buf), fmt, __VA_ARGS__); \
|
||||
int must_runtime = CBPRINTF_MUST_RUNTIME_PACKAGE(0, fmt, __VA_ARGS__); \
|
||||
zassert_equal(must_runtime, !Z_C_GENERIC, NULL); \
|
||||
snprintfcb(compare_buf, sizeof(compare_buf), fmt, __VA_ARGS__); \
|
||||
printk("-----------------------------------------\n"); \
|
||||
printk("%s\n", compare_buf); \
|
||||
uint8_t *pkg; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue