Tweak test so that local configuration isn't falsely reporting that we don't have 100% test coverage.

This commit is contained in:
Mark VanderVoord
2026-08-24 19:33:35 -04:00
parent 6679ba53b1
commit 923835236b
3 changed files with 8 additions and 14 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ extern "C"
#define CEXCEPTION_VERSION_MAJOR 1
#define CEXCEPTION_VERSION_MINOR 3
#define CEXCEPTION_VERSION_BUILD 4
#define CEXCEPTION_VERSION_BUILD 5
#define CEXCEPTION_VERSION ((CEXCEPTION_VERSION_MAJOR << 16) | (CEXCEPTION_VERSION_MINOR << 8) | CEXCEPTION_VERSION_BUILD)
//To Use CException, you have a number of options:
+2 -2
View File
@@ -231,8 +231,8 @@
#- ReportGenerator # Use ReportGenerator to create the specified reports.
:reports: # Specify one or more reports to generate.
# Make an HTML summary report.
- HtmlBasic
# - HtmlDetailed
# - HtmlBasic
- HtmlDetailed
# - Text
# - Cobertura
# - SonarQube
+5 -11
View File
@@ -20,17 +20,11 @@ extern volatile int TestingTheFallbackId;
#define CEXCEPTION_NONE (1234)
// Optionally define a special handler for unhandled exceptions
#define CEXCEPTION_NO_CATCH_HANDLER(id) \
{ \
if (!TestingTheFallback) \
{ \
TEST_FAIL_MESSAGE("Unexpected Exception!"); \
} \
else \
{ \
TestingTheFallbackId = id; \
TestingTheFallback--; \
} \
#define CEXCEPTION_NO_CATCH_HANDLER(id) \
{ \
TEST_ASSERT_GREATER_THAN_INT_MESSAGE(0, TestingTheFallback, "Unexpected Exception!"); \
TestingTheFallbackId = id; \
TestingTheFallback--; \
}
// Multi-Tasking environments will need a couple of macros defined to make this library