From 28d05e4f335d1ec072f724861133a764d67bb6be Mon Sep 17 00:00:00 2001 From: Greg Williams Date: Wed, 5 Nov 2014 21:57:48 -0500 Subject: [PATCH] Fixed tests --- .../example_1/test/test_runners/TestProductionCode2_Runner.c | 3 ++- .../example_1/test/test_runners/TestProductionCode_Runner.c | 3 ++- examples/example_3/test/no_ruby/TestProductionCode2_Runner.c | 3 ++- examples/example_3/test/no_ruby/TestProductionCode_Runner.c | 3 ++- test/expectdata/testsample_cmd.c | 3 ++- test/expectdata/testsample_def.c | 3 ++- test/expectdata/testsample_mock_cmd.c | 3 ++- test/expectdata/testsample_mock_def.c | 3 ++- test/expectdata/testsample_mock_new1.c | 3 ++- test/expectdata/testsample_mock_new2.c | 3 ++- test/expectdata/testsample_mock_param.c | 3 ++- test/expectdata/testsample_mock_run1.c | 3 ++- test/expectdata/testsample_mock_run2.c | 3 ++- test/expectdata/testsample_mock_yaml.c | 3 ++- test/expectdata/testsample_new1.c | 3 ++- test/expectdata/testsample_new2.c | 3 ++- test/expectdata/testsample_param.c | 3 ++- test/expectdata/testsample_run1.c | 3 ++- test/expectdata/testsample_run2.c | 3 ++- test/expectdata/testsample_yaml.c | 3 ++- 20 files changed, 40 insertions(+), 20 deletions(-) diff --git a/examples/example_1/test/test_runners/TestProductionCode2_Runner.c b/examples/example_1/test/test_runners/TestProductionCode2_Runner.c index 52aaa02..01926b1 100644 --- a/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +++ b/examples/example_1/test/test_runners/TestProductionCode2_Runner.c @@ -24,7 +24,8 @@ static void runTest(UnityTestFunction test) tearDown(); } } -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/examples/example_1/test/test_runners/TestProductionCode_Runner.c b/examples/example_1/test/test_runners/TestProductionCode_Runner.c index 4375d87..844c793 100644 --- a/examples/example_1/test/test_runners/TestProductionCode_Runner.c +++ b/examples/example_1/test/test_runners/TestProductionCode_Runner.c @@ -26,7 +26,8 @@ static void runTest(UnityTestFunction test) tearDown(); } } -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/examples/example_3/test/no_ruby/TestProductionCode2_Runner.c b/examples/example_3/test/no_ruby/TestProductionCode2_Runner.c index 52aaa02..01926b1 100644 --- a/examples/example_3/test/no_ruby/TestProductionCode2_Runner.c +++ b/examples/example_3/test/no_ruby/TestProductionCode2_Runner.c @@ -24,7 +24,8 @@ static void runTest(UnityTestFunction test) tearDown(); } } -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/examples/example_3/test/no_ruby/TestProductionCode_Runner.c b/examples/example_3/test/no_ruby/TestProductionCode_Runner.c index 4375d87..844c793 100644 --- a/examples/example_3/test/no_ruby/TestProductionCode_Runner.c +++ b/examples/example_3/test/no_ruby/TestProductionCode_Runner.c @@ -26,7 +26,8 @@ static void runTest(UnityTestFunction test) tearDown(); } } -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/test/expectdata/testsample_cmd.c b/test/expectdata/testsample_cmd.c index 9890344..3bd5c08 100644 --- a/test/expectdata/testsample_cmd.c +++ b/test/expectdata/testsample_cmd.c @@ -38,7 +38,8 @@ extern void test_TheSecondThingToTest(void); //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/test/expectdata/testsample_def.c b/test/expectdata/testsample_def.c index f89b256..0c95c76 100644 --- a/test/expectdata/testsample_def.c +++ b/test/expectdata/testsample_def.c @@ -34,7 +34,8 @@ extern void test_TheSecondThingToTest(void); //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/test/expectdata/testsample_mock_cmd.c b/test/expectdata/testsample_mock_cmd.c index ed9fe99..d047b2a 100644 --- a/test/expectdata/testsample_mock_cmd.c +++ b/test/expectdata/testsample_mock_cmd.c @@ -56,7 +56,8 @@ static void CMock_Destroy(void) } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { CMock_Verify(); CMock_Destroy(); diff --git a/test/expectdata/testsample_mock_def.c b/test/expectdata/testsample_mock_def.c index be933b7..3a90549 100644 --- a/test/expectdata/testsample_mock_def.c +++ b/test/expectdata/testsample_mock_def.c @@ -52,7 +52,8 @@ static void CMock_Destroy(void) } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { CMock_Verify(); CMock_Destroy(); diff --git a/test/expectdata/testsample_mock_new1.c b/test/expectdata/testsample_mock_new1.c index f6a8743..7f49c2e 100644 --- a/test/expectdata/testsample_mock_new1.c +++ b/test/expectdata/testsample_mock_new1.c @@ -65,7 +65,8 @@ static void CMock_Destroy(void) } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { CMock_Verify(); CMock_Destroy(); diff --git a/test/expectdata/testsample_mock_new2.c b/test/expectdata/testsample_mock_new2.c index df816f7..daeb82e 100644 --- a/test/expectdata/testsample_mock_new2.c +++ b/test/expectdata/testsample_mock_new2.c @@ -64,7 +64,8 @@ a_custom_teardown(); } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { CMock_Verify(); CMock_Destroy(); diff --git a/test/expectdata/testsample_mock_param.c b/test/expectdata/testsample_mock_param.c index 4497799..0f6b05a 100644 --- a/test/expectdata/testsample_mock_param.c +++ b/test/expectdata/testsample_mock_param.c @@ -53,7 +53,8 @@ static void CMock_Destroy(void) } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { CMock_Verify(); CMock_Destroy(); diff --git a/test/expectdata/testsample_mock_run1.c b/test/expectdata/testsample_mock_run1.c index f6a8743..7f49c2e 100644 --- a/test/expectdata/testsample_mock_run1.c +++ b/test/expectdata/testsample_mock_run1.c @@ -65,7 +65,8 @@ static void CMock_Destroy(void) } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { CMock_Verify(); CMock_Destroy(); diff --git a/test/expectdata/testsample_mock_run2.c b/test/expectdata/testsample_mock_run2.c index df816f7..daeb82e 100644 --- a/test/expectdata/testsample_mock_run2.c +++ b/test/expectdata/testsample_mock_run2.c @@ -64,7 +64,8 @@ a_custom_teardown(); } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { CMock_Verify(); CMock_Destroy(); diff --git a/test/expectdata/testsample_mock_yaml.c b/test/expectdata/testsample_mock_yaml.c index e02b3c2..35377d7 100644 --- a/test/expectdata/testsample_mock_yaml.c +++ b/test/expectdata/testsample_mock_yaml.c @@ -65,7 +65,8 @@ a_yaml_setup(); } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { CMock_Verify(); CMock_Destroy(); diff --git a/test/expectdata/testsample_new1.c b/test/expectdata/testsample_new1.c index 73bc499..1bba7ea 100644 --- a/test/expectdata/testsample_new1.c +++ b/test/expectdata/testsample_new1.c @@ -44,7 +44,8 @@ extern void test_TheSecondThingToTest(void); //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/test/expectdata/testsample_new2.c b/test/expectdata/testsample_new2.c index 5d66771..4ce6639 100644 --- a/test/expectdata/testsample_new2.c +++ b/test/expectdata/testsample_new2.c @@ -46,7 +46,8 @@ a_custom_teardown(); } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/test/expectdata/testsample_param.c b/test/expectdata/testsample_param.c index 820ded2..950eeb3 100644 --- a/test/expectdata/testsample_param.c +++ b/test/expectdata/testsample_param.c @@ -35,7 +35,8 @@ extern void test_TheSecondThingToTest(void); //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/test/expectdata/testsample_run1.c b/test/expectdata/testsample_run1.c index 73bc499..1bba7ea 100644 --- a/test/expectdata/testsample_run1.c +++ b/test/expectdata/testsample_run1.c @@ -44,7 +44,8 @@ extern void test_TheSecondThingToTest(void); //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/test/expectdata/testsample_run2.c b/test/expectdata/testsample_run2.c index 5d66771..4ce6639 100644 --- a/test/expectdata/testsample_run2.c +++ b/test/expectdata/testsample_run2.c @@ -46,7 +46,8 @@ a_custom_teardown(); } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); diff --git a/test/expectdata/testsample_yaml.c b/test/expectdata/testsample_yaml.c index 0b38ad2..96ba511 100644 --- a/test/expectdata/testsample_yaml.c +++ b/test/expectdata/testsample_yaml.c @@ -47,7 +47,8 @@ a_yaml_setup(); } //=======Test Reset Option===== -void resetTest() +void resetTest(void); +void resetTest(void) { tearDown(); setUp(); -- GitLab