Closed disa6302 closed 9 months ago
Attention: 4 lines
in your changes are missing coverage. Please review.
Comparison is base (
792e0db
) 80.42% compared to head (705865c
) 80.37%.:exclamation: Current head 705865c differs from pull request most recent head b4c56cb. Consider uploading reports for the commit b4c56cb to get more accurate results
Files | Patch % | Lines |
---|---|---|
src/utils/src/CustomAssert.c | 0.00% | 4 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issue #, if available:
Description of changes:
In release build,
assert()
instruction is not executed. Since the SDK has APIs likeCHECK
andCHECK_EXT
which invokeassert
on FATAL conditions, there is a need for a customassert
operation that achieves the same purpose asassert
in C language.assert
in release build is still not desirable, and we should convert to graceful handling, this PR attempts to fix the current gap in release build to avoid catastrophic segfaults and instead terminate with some information.Testing:
assert
is used.In debug build:
In release build:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.