1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-27 10:14:28 +01:00

Update all the boilerplates

This commit is contained in:
Mark VanderVoord
2024-03-16 23:15:00 -04:00
parent 85452ad154
commit 671f8d25f1
113 changed files with 747 additions and 223 deletions

View File

@@ -1,8 +1,9 @@
/* ==========================================
Unity Project - A Test Framework for C
Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
[Released under MIT License. Please refer to license.txt for details]
========================================== */
/* =========================================================================
Unity - A Test Framework for C
ThrowTheSwitch.org
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
SPDX-License-Identifier: MIT
========================================================================= */
#include "unity.h"
#define TEST_INSTANCES
@@ -292,13 +293,15 @@ void testFailureCountIncrementsAndIsReturnedAtEnd(void)
#ifndef USING_OUTPUT_SPY
TEST_IGNORE();
#else
UNITY_UINT savedGetFlushSpyCalls = 0;
UNITY_UINT savedFailures = Unity.TestFailures;
Unity.CurrentTestFailed = 1;
startPutcharSpy(); /* Suppress output */
startFlushSpy();
savedGetFlushSpyCalls = getFlushSpyCalls();
UnityConcludeTest();
TEST_ASSERT_EQUAL(0, savedGetFlushSpyCalls);
endPutcharSpy();
TEST_ASSERT_EQUAL(0, getFlushSpyCalls());
TEST_ASSERT_EQUAL(savedFailures + 1, Unity.TestFailures);
#if defined(UNITY_OUTPUT_FLUSH) && defined(UNITY_OUTPUT_FLUSH_HEADER_DECLARATION)
TEST_ASSERT_EQUAL(1, getFlushSpyCalls());