feat(unity): upgrade to 2.6.0-RC1

This commit is contained in:
Ivan Grokhotkov
2023-11-27 14:21:49 +01:00
parent 4b0da52aa8
commit 88fa79fcc7
13 changed files with 78 additions and 16 deletions

View 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;
}