tests: unit: util: Add tests for IF_DISABLED

Add a testcase for the IF_DISABLED macro.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2023-12-21 12:46:09 +01:00 committed by Fabio Baltieri
commit cc920696ed
2 changed files with 30 additions and 0 deletions

View file

@ -38,6 +38,10 @@ ZTEST(util_cxx, test_IF_ENABLED) {
run_IF_ENABLED();
}
ZTEST(util_cxx, test_IF_DISABLED) {
run_IF_DISABLED();
}
ZTEST(util_cxx, test_LISTIFY) {
run_LISTIFY();
}
@ -186,6 +190,10 @@ ZTEST(util_cc, test_IF_ENABLED) {
run_IF_ENABLED();
}
ZTEST(util_cc, test_IF_DISABLED) {
run_IF_DISABLED();
}
ZTEST(util_cc, test_LISTIFY) {
run_LISTIFY();
}