diff options
author | Cy Schubert <cy@FreeBSD.org> | 2024-05-10 15:15:56 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2024-05-26 22:55:52 +0000 |
commit | 1f833b3fc9968c3dd7ed79ccf0525ebf16c891ad (patch) | |
tree | 85801af20e3b694584668aeb39ecec75ee71f72c /sntp/unity/unity_internals.h | |
parent | ab1f1aa8333369a83ff284848fc3fc2e52d5f29f (diff) |
Diffstat (limited to 'sntp/unity/unity_internals.h')
-rw-r--r-- | sntp/unity/unity_internals.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sntp/unity/unity_internals.h b/sntp/unity/unity_internals.h index a04f52b478bb..3d22e7aa20e8 100644 --- a/sntp/unity/unity_internals.h +++ b/sntp/unity/unity_internals.h @@ -519,6 +519,9 @@ void UnityAssertDoubleSpecial(const _UD actual, const UNITY_FLOAT_TRAIT_T style); #endif +void UnityExpectFailMessage(const char* msg, + const UNITY_LINE_TYPE line); + //------------------------------------------------------- // Error Strings We Might Need //------------------------------------------------------- @@ -708,8 +711,7 @@ extern const char UnityStrErr64[]; //End of UNITY_INTERNALS_H #endif -//#define TEST_EXPECT_FAIL() Unity.isExpectingFail = 1; -//#define TEST_EXPECT_FAIL_MESSAGE(message) Unity.isExpectingFail = 1; Unity.XFAILMessage = message; //PROBLEM : does this work on all compilers? +// Not part of standard distribution -#define TEST_EXPECT_FAIL() UnityExpectFail(); -#define TEST_EXPECT_FAIL_MESSAGE(message) UnityExpectFailMessage( (message) ); +#define TEST_EXPECT_FAIL() UnityExpectFail(); +#define TEST_EXPECT_FAIL_MESSAGE(message) UnityExpectFailMessage((message), __LINE__); |