mirror of
https://github.com/throwtheswitch/cexception.git
synced 2026-09-10 12:19:58 +00:00
Tweak test so that local configuration isn't falsely reporting that we don't have 100% test coverage.
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user