Lines Matching refs:cond
49 #define ASSERT_OK(cond) \ argument
51 int _err = (cond); \
55 #cond " failed with error %d\n", _err); \
59 #define ASSERT_OK_MSG(cond, fmt, ...) \ argument
61 int _err = (cond); \
65 #cond " failed with error %d\n" fmt, _err, \
70 #define ASSERT_TRUE(cond) \ argument
72 if (!(cond)) { \
75 #cond " is false.\n"); \
79 #define ASSERT_TRUE_MSG(cond, fmt, ...) \ argument
81 if (!(cond)) { \
84 #cond " is false. " fmt, ##__VA_ARGS__); \
89 #define ASSERT_FALSE(cond) \ argument
91 if (cond) { \
94 #cond " is true.\n"); \
98 #define ASSERT_FALSE_MSG(cond, fmt, ...) \ argument
100 if (cond) { \
103 #cond " is true. " fmt, ##__VA_ARGS__); \
126 #define WAIT_FOR_COND(cond, wait) \ argument
129 for (uint8_t sec = (wait); !(cond); sec--) { \
139 bs_trace_error_time_line("Waiting for " #cond " timed out\n"); \