unity: log error codes as hex
Error codes are normally defined as hex numbers in header files, so changing the assert macro to print them as hex as well.
This commit is contained in:
parent
3161854efb
commit
80486240c6
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ void unity_run_all_tests();
|
|||
*/
|
||||
|
||||
// shorthand to check esp_err_t return code
|
||||
#define TEST_ESP_OK(rc) TEST_ASSERT_EQUAL_INT32(ESP_OK, rc)
|
||||
#define TEST_ESP_ERR(err, rc) TEST_ASSERT_EQUAL_INT32(err, rc)
|
||||
#define TEST_ESP_OK(rc) TEST_ASSERT_EQUAL_HEX32(ESP_OK, rc)
|
||||
#define TEST_ESP_ERR(err, rc) TEST_ASSERT_EQUAL_HEX32(err, rc)
|
||||
|
||||
|
||||
#endif //UNITY_CONFIG_H
|
||||
|
|
Loading…
Reference in a new issue