Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generate test runner to leverage custom UNITY_END() #704

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions auto/generate_test_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -454,10 +454,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 @@ -533,7 +533,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
Loading