mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
feat(unity): upgrade to 2.6.0-RC1
This commit is contained in:
28
components/unity/unity_compat.c
Normal file
28
components/unity/unity_compat.c
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include "unity.h"
|
||||
|
||||
// Unity 2.6.0 has removed weak definitions of setUp, tearDown, suiteSetUp and suiteTearDown.
|
||||
// (https://github.com/ThrowTheSwitch/Unity/pull/454)
|
||||
// We need to provide them here to avoid breaking the existing test applications.
|
||||
|
||||
__attribute__((weak)) void setUp(void)
|
||||
{
|
||||
}
|
||||
|
||||
__attribute__((weak)) void tearDown(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
__attribute__((weak)) void suiteSetUp(void)
|
||||
{
|
||||
}
|
||||
|
||||
__attribute__((weak)) int suiteTearDown(int num_failures)
|
||||
{
|
||||
return num_failures;
|
||||
}
|
Reference in New Issue
Block a user