mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-26 18:01:35 +01:00
Protect test runner generator against characters in strings that look like comments or functions
This commit is contained in:
@@ -31,6 +31,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);
|
||||
|
||||
|
||||
//=======Suite Setup=====
|
||||
@@ -61,6 +63,8 @@ int main(void)
|
||||
UnityBegin("testdata/testsample.c");
|
||||
RUN_TEST(test_TheFirstThingToTest, 21);
|
||||
RUN_TEST(test_TheSecondThingToTest, 43);
|
||||
RUN_TEST(test_TheThirdThingToTest, 53);
|
||||
RUN_TEST(test_TheFourthThingToTest, 58);
|
||||
|
||||
return suite_teardown(UnityEnd());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user