@@ -61,7 +61,7 @@ void testUnitySizeInitializationReminder(void)
6161#ifndef UNITY_EXCLUDE_SETJMP_H
6262 jmp_buf AbortFrame ;
6363#endif
64- } _Expected_Unity ;
64+ } Expected_Unity ;
6565#else
6666 struct {
6767 const char * TestFile ;
@@ -81,30 +81,30 @@ void testUnitySizeInitializationReminder(void)
8181#ifndef UNITY_EXCLUDE_SETJMP_H
8282 jmp_buf AbortFrame ;
8383#endif
84- } _Expected_Unity ;
84+ } Expected_Unity ;
8585#endif
8686
8787 /* Compare our fake structure's size to the actual structure's size. They
8888 * should be the same.
8989 *
9090 * This accounts for alignment, padding, and packing issues that might come
9191 * up between different architectures. */
92- TEST_ASSERT_EQUAL_MESSAGE (sizeof (_Expected_Unity ), sizeof (Unity ), message );
92+ TEST_ASSERT_EQUAL_MESSAGE (sizeof (Expected_Unity ), sizeof (Unity ), message );
9393}
9494
95- void testPassShouldEndImmediatelyWithPass (void )
95+ UNITY_FUNCTION_ATTR ( noreturn ) void testPassShouldEndImmediatelyWithPass (void )
9696{
9797 TEST_PASS ();
9898 TEST_FAIL_MESSAGE ("We should have passed already and finished this test" );
9999}
100100
101- void testPassShouldEndImmediatelyWithPassAndMessage (void )
101+ UNITY_FUNCTION_ATTR ( noreturn ) void testPassShouldEndImmediatelyWithPassAndMessage (void )
102102{
103103 TEST_PASS_MESSAGE ("Woohoo! This Automatically Passes!" );
104104 TEST_FAIL_MESSAGE ("We should have passed already and finished this test" );
105105}
106106
107- void testMessageShouldDisplayMessageWithoutEndingAndGoOnToPass (void )
107+ UNITY_FUNCTION_ATTR ( noreturn ) void testMessageShouldDisplayMessageWithoutEndingAndGoOnToPass (void )
108108{
109109 TEST_MESSAGE ("This is just a message" );
110110 TEST_MESSAGE ("This is another message" );
@@ -282,7 +282,7 @@ void testProtection(void)
282282 TEST_ASSERT_EQUAL (3 , mask );
283283}
284284
285- void testIgnoredAndThenFailInTearDown (void )
285+ UNITY_FUNCTION_ATTR ( noreturn ) void testIgnoredAndThenFailInTearDown (void )
286286{
287287 SetToOneToFailInTearDown = 1 ;
288288 TEST_IGNORE ();
0 commit comments