mirror of
https://github.com/throwtheswitch/cexception.git
synced 2026-10-02 06:47:24 +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_MAJOR 1
|
||||||
#define CEXCEPTION_VERSION_MINOR 3
|
#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)
|
#define CEXCEPTION_VERSION ((CEXCEPTION_VERSION_MAJOR << 16) | (CEXCEPTION_VERSION_MINOR << 8) | CEXCEPTION_VERSION_BUILD)
|
||||||
|
|
||||||
//To Use CException, you have a number of options:
|
//To Use CException, you have a number of options:
|
||||||
|
|||||||
+2
-2
@@ -231,8 +231,8 @@
|
|||||||
#- ReportGenerator # Use ReportGenerator to create the specified reports.
|
#- ReportGenerator # Use ReportGenerator to create the specified reports.
|
||||||
:reports: # Specify one or more reports to generate.
|
:reports: # Specify one or more reports to generate.
|
||||||
# Make an HTML summary report.
|
# Make an HTML summary report.
|
||||||
- HtmlBasic
|
# - HtmlBasic
|
||||||
# - HtmlDetailed
|
- HtmlDetailed
|
||||||
# - Text
|
# - Text
|
||||||
# - Cobertura
|
# - Cobertura
|
||||||
# - SonarQube
|
# - SonarQube
|
||||||
|
|||||||
@@ -20,17 +20,11 @@ extern volatile int TestingTheFallbackId;
|
|||||||
#define CEXCEPTION_NONE (1234)
|
#define CEXCEPTION_NONE (1234)
|
||||||
|
|
||||||
// Optionally define a special handler for unhandled exceptions
|
// Optionally define a special handler for unhandled exceptions
|
||||||
#define CEXCEPTION_NO_CATCH_HANDLER(id) \
|
#define CEXCEPTION_NO_CATCH_HANDLER(id) \
|
||||||
{ \
|
{ \
|
||||||
if (!TestingTheFallback) \
|
TEST_ASSERT_GREATER_THAN_INT_MESSAGE(0, TestingTheFallback, "Unexpected Exception!"); \
|
||||||
{ \
|
TestingTheFallbackId = id; \
|
||||||
TEST_FAIL_MESSAGE("Unexpected Exception!"); \
|
TestingTheFallback--; \
|
||||||
} \
|
|
||||||
else \
|
|
||||||
{ \
|
|
||||||
TestingTheFallbackId = id; \
|
|
||||||
TestingTheFallback--; \
|
|
||||||
} \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Multi-Tasking environments will need a couple of macros defined to make this library
|
// Multi-Tasking environments will need a couple of macros defined to make this library
|
||||||
|
|||||||
Reference in New Issue
Block a user