mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-25 17:31:36 +01:00
- added target for checking ANSI compliance
- fixed ANSI (C89) issues, including #418
This commit is contained in:
2
test/testdata/CException.h
vendored
2
test/testdata/CException.h
vendored
@@ -8,4 +8,4 @@
|
||||
#define Try if (e)
|
||||
#define Catch(a) if (!a)
|
||||
|
||||
#endif //CEXCEPTION_H
|
||||
#endif
|
||||
|
||||
2
test/testdata/Defs.h
vendored
2
test/testdata/Defs.h
vendored
@@ -5,4 +5,4 @@
|
||||
|
||||
extern int CounterSuiteSetup;
|
||||
|
||||
#endif //DEF_H
|
||||
#endif
|
||||
|
||||
2
test/testdata/cmock.h
vendored
2
test/testdata/cmock.h
vendored
@@ -11,4 +11,4 @@ void mockMock_Init(void) { mockMock_Init_Counter++; }
|
||||
void mockMock_Verify(void) { mockMock_Verify_Counter++; }
|
||||
void mockMock_Destroy(void) { mockMock_Destroy_Counter++; }
|
||||
|
||||
#endif //CMOCK_H
|
||||
#endif
|
||||
|
||||
2
test/testdata/mockMock.h
vendored
2
test/testdata/mockMock.h
vendored
@@ -10,4 +10,4 @@ void mockMock_Init(void);
|
||||
void mockMock_Verify(void);
|
||||
void mockMock_Destroy(void);
|
||||
|
||||
#endif //MOCK_MOCK_H
|
||||
#endif
|
||||
|
||||
4
test/testdata/testRunnerGenerator.c
vendored
4
test/testdata/testRunnerGenerator.c
vendored
@@ -108,10 +108,12 @@ void custtest_ThisTestPassesWhenCustomTeardownRan(void)
|
||||
TEST_ASSERT_EQUAL_MESSAGE(2, CounterTeardown, "Custom Teardown Wasn't Run");
|
||||
}
|
||||
|
||||
#ifndef UNITY_EXCLUDE_TESTING_NEW_COMMENTS
|
||||
//void test_NewStyleCommentsShouldBeIgnored(void)
|
||||
//{
|
||||
// TEST_ASSERT_FAIL("New Style Comments Should Be Ignored");
|
||||
//}
|
||||
#endif
|
||||
|
||||
void test_NotBeConfusedByLongComplicatedStrings(void)
|
||||
{
|
||||
@@ -185,5 +187,3 @@ void suitetest_ThisTestPassesWhenCustomSuiteSetupAndTeardownRan(void)
|
||||
{
|
||||
TEST_ASSERT_EQUAL_MESSAGE(1, CounterSuiteSetup, "Suite Setup Should Have Run");
|
||||
}
|
||||
|
||||
|
||||
|
||||
2
test/testdata/testRunnerGeneratorWithMocks.c
vendored
2
test/testdata/testRunnerGeneratorWithMocks.c
vendored
@@ -109,10 +109,12 @@ void custtest_ThisTestPassesWhenCustomTeardownRan(void)
|
||||
TEST_ASSERT_EQUAL_MESSAGE(2, CounterTeardown, "Custom Teardown Wasn't Run");
|
||||
}
|
||||
|
||||
#ifndef UNITY_EXCLUDE_TESTING_NEW_COMMENTS
|
||||
//void test_NewStyleCommentsShouldBeIgnored(void)
|
||||
//{
|
||||
// TEST_ASSERT_FAIL("New Style Comments Should Be Ignored");
|
||||
//}
|
||||
#endif
|
||||
|
||||
void test_NotBeConfusedByLongComplicatedStrings(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user