Skip to content

Commit

Permalink
fixup! WIP DEBUG COMMIT CI
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber committed Jan 13, 2025
1 parent 8ce5a53 commit 6c38869
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/util-unittest.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ extern int unittests_fatal;
/**
* \brief Fail a test if expression evaluates to true.
*/
#define FAIL_IF(expr) do { \
printf("failed %s:%d\n", __FILE__, __LINE__); \
if (unittests_fatal) { \
BUG_ON(expr); \
} else if (expr) { \
return 0; \
} \
#define FAIL_IF(expr) \
do { \
printf("failed %s:%d\n", __FILE__, __LINE__); \
if (unittests_fatal) { \
BUG_ON(expr); \
} else if (expr) { \
return 0; \
} \
} while (0)

/**
Expand Down

0 comments on commit 6c38869

Please sign in to comment.