Skip to content

Commit

Permalink
fix: Remove deprecated BAO_ tag from testf_assert.h
Browse files Browse the repository at this point in the history
Signed-off-by: ESCristiano <[email protected]>
  • Loading branch information
ESCristiano committed Sep 15, 2023
1 parent 1a80c04 commit bf1ded3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/inc/testf_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
(*failures)++; \
intra_fails++; \
if (intra_fails == 1) \
BAO_LOG_FAILURE(); \
LOG_FAILURE(); \
if (TESTF_LOG_LEVEL > 1) { \
printf(" Index: %d\n", i); \
} \
Expand All @@ -40,23 +40,23 @@
} \
if (intra_fails == 0) { \
(*failures)++; \
BAO_LOG_FAILURE(); \
LOG_FAILURE(); \
} \
} while (0)

#define TESTF_ASSERT_OP(x, y, op) \
do { \
if (!(x op y)) { \
(*failures)++; \
BAO_LOG_FAILURE(); \
LOG_FAILURE(); \
} \
} while (0)

#define TESTF_PASS(message) printf(" Message: %s\n", message);

#define TESTF_FAIL(message) \
(*failures)++; \
BAO_LOG_FAILURE(); \
LOG_FAILURE(); \
printf(" Message: %s\n", message);

#endif // TESTF_ASSERT_H

0 comments on commit bf1ded3

Please sign in to comment.