Use of the test suite in C++ causes warnings because use of defined cast operators have the wrong target type. For example, many standard container APIs use operator bool() to test for empty containers. Code like zassert_true(v, "") fails to build when the test parameter is an int. Correct the argument type. This also causes any use of an assignment expression as a conditional in zassert to be diagnosed as a potential error. Signed-off-by: Peter A. Bigot <pab@pabigot.com> |
||
|---|---|---|
| .. | ||
| arch | ||
| syscalls | ||
| kernel_arch_thread.h | ||
| offsets.h | ||
| syscall_list.h | ||
| syscall_macros.h | ||
| ztest_assert.h | ||
| ztest_mock.h | ||
| ztest_test.h | ||
| ztest.h | ||