mirror of https://github.com/ARMmbed/mbed-os.git
Merge branch 'david_unity_error_code' of ssh://github.com/davidsaada/mbed-os into rollup-b.1
commit
b327b12c75
|
@ -294,6 +294,15 @@ void tearDown(void);
|
|||
#define TEST_ASSERT_DOUBLE_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN((actual), __LINE__, (message))
|
||||
#define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, (message))
|
||||
|
||||
|
||||
/*-------------------------------------------------------
|
||||
* Error code checking
|
||||
*-------------------------------------------------------*/
|
||||
// Use these to check whether error code equals what we expect.
|
||||
// Only display error code (without other information)
|
||||
#define TEST_ASSERT_EQUAL_ERROR_CODE(expected, actual) TEST_ASSERT_EQUAL(MBED_GET_ERROR_CODE(expected), MBED_GET_ERROR_CODE(actual))
|
||||
#define TEST_ASSERT_EQUAL_ERROR_CODE_MESSAGE(expected, actual, message) TEST_ASSERT_EQUAL_MESSAGE(MBED_GET_ERROR_CODE(expected), MBED_GET_ERROR_CODE(actual))
|
||||
|
||||
/*-------------------------------------------------------
|
||||
* Test skipping
|
||||
*-------------------------------------------------------*/
|
||||
|
|
Loading…
Reference in New Issue