Skip to content

Commit

Permalink
Merge pull request #737 from andre-lei/dev/gen-testrunner-use-begin-e…
Browse files Browse the repository at this point in the history
…nd-macro

Update generate test runner to leverage custom UNITY_END()
  • Loading branch information
mvandervoord authored Jun 10, 2024
2 parents 1d28a99 + 35229fd commit 5659085
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auto/generate_test_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ def create_main(output, filename, tests, used_mocks)
if @options[:omit_begin_end]
output.puts(' (void) suite_teardown(0);')
else
output.puts(' return suiteTearDown(UnityEnd());')
output.puts(' return suiteTearDown(UNITY_END());')
end
else
output.puts(' return UnityEnd();') unless @options[:omit_begin_end]
output.puts(' return UNITY_END();') unless @options[:omit_begin_end]
end
output.puts('}')
end
Expand Down Expand Up @@ -534,7 +534,7 @@ def create_h_file(output, filename, tests, testfile_includes, used_mocks)
' --suite_setup="" - code to execute for setup of entire suite',
' --suite_teardown="" - code to execute for teardown of entire suite',
' --use_param_tests=1 - enable parameterized tests (disabled by default)',
' --omit_begin_end=1 - omit calls to UnityBegin and UnityEnd (disabled by default)',
' --omit_begin_end=1 - omit calls to UnityBegin and UNITY_END (disabled by default)',
' --header_file="" - path/name of test header file to generate too'].join("\n")
exit 1
end
Expand Down

0 comments on commit 5659085

Please sign in to comment.