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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user