Skip to content

Commit 5659085

Browse files
authored
Merge pull request #737 from andre-lei/dev/gen-testrunner-use-begin-end-macro
Update generate test runner to leverage custom UNITY_END()
2 parents 1d28a99 + 35229fd commit 5659085

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

auto/generate_test_runner.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,10 @@ def create_main(output, filename, tests, used_mocks)
455455
if @options[:omit_begin_end]
456456
output.puts(' (void) suite_teardown(0);')
457457
else
458-
output.puts(' return suiteTearDown(UnityEnd());')
458+
output.puts(' return suiteTearDown(UNITY_END());')
459459
end
460460
else
461-
output.puts(' return UnityEnd();') unless @options[:omit_begin_end]
461+
output.puts(' return UNITY_END();') unless @options[:omit_begin_end]
462462
end
463463
output.puts('}')
464464
end
@@ -534,7 +534,7 @@ def create_h_file(output, filename, tests, testfile_includes, used_mocks)
534534
' --suite_setup="" - code to execute for setup of entire suite',
535535
' --suite_teardown="" - code to execute for teardown of entire suite',
536536
' --use_param_tests=1 - enable parameterized tests (disabled by default)',
537-
' --omit_begin_end=1 - omit calls to UnityBegin and UnityEnd (disabled by default)',
537+
' --omit_begin_end=1 - omit calls to UnityBegin and UNITY_END (disabled by default)',
538538
' --header_file="" - path/name of test header file to generate too'].join("\n")
539539
exit 1
540540
end

0 commit comments

Comments
 (0)