Skip to content

Commit 75d5074

Browse files
kartbennashif
authored andcommitted
Revert "testsuite: ztest: Add validation of zassert strings"
This reverts commit 6deca93. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 804e6a2 commit 75d5074

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

subsys/testsuite/ztest/include/zephyr/ztest_assert.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,6 @@ static inline bool z_zexpect(bool cond, const char *default_msg, const char *fil
191191
_zassert_base(cond, default_msg, msg, ##__VA_ARGS__)
192192

193193
#define zassert(cond, default_msg, ...) \
194-
IF_ENABLED(__VA_OPT__(1), ( \
195-
if (0) { \
196-
printf(__VA_ARGS__); \
197-
})) \
198194
_zassert_va(cond, default_msg, COND_CODE_1(__VA_OPT__(1), (__VA_ARGS__), (NULL)))
199195

200196
/**
@@ -233,10 +229,6 @@ static inline bool z_zexpect(bool cond, const char *default_msg, const char *fil
233229
_zassume_base(cond, default_msg, msg, ##__VA_ARGS__)
234230

235231
#define zassume(cond, default_msg, ...) \
236-
IF_ENABLED(__VA_OPT__(1), ( \
237-
if (0) { \
238-
printf(__VA_ARGS__); \
239-
})) \
240232
_zassume_va(cond, default_msg, COND_CODE_1(__VA_OPT__(1), (__VA_ARGS__), (NULL)))
241233

242234
/**

0 commit comments

Comments
 (0)