mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
feat(unity): upgrade to 2.6.0-RC1
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
#include <esp_err.h>
|
||||
#include <stddef.h>
|
||||
#include <math.h>
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#ifdef CONFIG_UNITY_ENABLE_FLOAT
|
||||
@@ -29,6 +30,18 @@
|
||||
#define UNITY_OUTPUT_COLOR
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus
|
||||
#define UNITY_IS_NAN isnan
|
||||
#define UNITY_IS_INF isinf
|
||||
#else
|
||||
#define UNITY_IS_NAN std::isnan
|
||||
#define UNITY_IS_INF std::isinf
|
||||
#endif
|
||||
|
||||
// Note, using __noreturn__ rather than noreturn
|
||||
// https://github.com/espressif/esp-idf/issues/11339
|
||||
#define UNITY_NORETURN __attribute__((__noreturn__))
|
||||
|
||||
#define UNITY_EXCLUDE_TIME_H
|
||||
|
||||
void unity_flush(void);
|
||||
@@ -51,6 +64,10 @@ uint32_t unity_exec_time_get_ms(void);
|
||||
#endif //CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER
|
||||
|
||||
#ifdef CONFIG_UNITY_ENABLE_FIXTURE
|
||||
// Two separate "extras" options here:
|
||||
// 1. Disable memory allocation wrappers in Unity Fixture
|
||||
#define UNITY_FIXTURE_NO_EXTRAS
|
||||
// 2. Add IDF-specific additions to Unity Fixture
|
||||
#include "unity_fixture_extras.h"
|
||||
#endif // CONFIG_UNITY_ENABLE_FIXTURE
|
||||
|
||||
|
Reference in New Issue
Block a user