1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-25 17:31:36 +01:00

Protect test runner generator against characters in strings that look like comments or functions

This commit is contained in:
Mark VanderVoord
2016-02-25 15:35:45 -05:00
parent 915e3fb9fc
commit bcf6515329
13 changed files with 72 additions and 12 deletions

View File

@@ -32,6 +32,8 @@ extern void setUp(void);
extern void tearDown(void);
extern void test_TheFirstThingToTest(void);
extern void test_TheSecondThingToTest(void);
extern void test_TheThirdThingToTest(void);
extern void test_TheFourthThingToTest(void);
//=======Test Reset Option=====
@@ -49,6 +51,8 @@ int main(void)
UnityBegin("testdata/testsample.c");
RUN_TEST(test_TheFirstThingToTest, 21, RUN_TEST_NO_ARGS);
RUN_TEST(test_TheSecondThingToTest, 43, RUN_TEST_NO_ARGS);
RUN_TEST(test_TheThirdThingToTest, 53, RUN_TEST_NO_ARGS);
RUN_TEST(test_TheFourthThingToTest, 58, RUN_TEST_NO_ARGS);
return (UnityEnd());
}