Skip to content

Commit

Permalink
Update generate test runner to leverage custom UNITY_END()
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-lei committed Nov 16, 2023
1 parent bf56029 commit 3911b01
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 @@ -450,10 +450,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 @@ -529,7 +529,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 3911b01

Please sign in to comment.