Skip to content
Commit daed9680 authored by Peter Bigot's avatar Peter Bigot Committed by Kumar Gala
Browse files

subsys/testsuite: use bool for condition types



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: default avatarPeter A. Bigot <pab@pabigot.com>
parent 241044f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment