treewide: fix various build warnings; ignore vendored headers in formatting job
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I7af033c8d3f437e5574b050223cbc16a6a6a6964
This commit is contained in:
parent
b311a0a969
commit
3719dbccd5
10 changed files with 95 additions and 81 deletions
|
|
@ -41,9 +41,12 @@ extern int test_total;
|
|||
} while (0)
|
||||
|
||||
#define TEST_ASSERT_FTZ(actual, expected, tol, msg) do { \
|
||||
double _diff = fabs((actual) - (expected)); \
|
||||
if (_diff > (tol)) { \
|
||||
fprintf(stderr, " [FAIL] %s: expected %.6f, got %.6f (diff %.6f)\n", msg, (expected), (actual), _diff); \
|
||||
double _actual = (double)(actual); \
|
||||
double _expected = (double)(expected); \
|
||||
double _tol = (double)(tol); \
|
||||
double _diff = fabs(_actual - _expected); \
|
||||
if (_diff > _tol) { \
|
||||
fprintf(stderr, " [FAIL] %s: expected %.6f, got %.6f (diff %.6f)\n", msg, _expected, _actual, _diff); \
|
||||
test_failures++; \
|
||||
return TEST_FAILED; \
|
||||
} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue