| 468 | } |
| 469 | |
| 470 | void fail(const char* msg, const char* file, int line, bool isFatal) FL_NOEXCEPT { |
| 471 | AssertResult result(false); |
| 472 | result.mExpression = msg; |
| 473 | result.mLocation = SourceLocation(file, line); |
| 474 | TestContext::instance().reportAssert(result); |
| 475 | if (isFatal) { |
| 476 | fl::printf(" FAIL (fatal): %s:%d: %s\n", file, line, msg); |
| 477 | } else { |
| 478 | fl::printf(" FAIL_CHECK: %s:%d: %s\n", file, line, msg); |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | // ============================================================================= |
| 483 | // Skip test support functions |
no test coverage detected