Skip to content

Commit 3911b01

Browse files
committed
Update generate test runner to leverage custom UNITY_END()
1 parent bf56029 commit 3911b01

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
@@ -450,10 +450,10 @@ def create_main(output, filename, tests, used_mocks)
450450
if @options[:omit_begin_end]
451451
output.puts(' (void) suite_teardown(0);')
452452
else
453-
output.puts(' return suiteTearDown(UnityEnd());')
453+
output.puts(' return suiteTearDown(UNITY_END());')
454454
end
455455
else
456-
output.puts(' return UnityEnd();') unless @options[:omit_begin_end]
456+
output.puts(' return UNITY_END();') unless @options[:omit_begin_end]
457457
end
458458
output.puts('}')
459459
end
@@ -529,7 +529,7 @@ def create_h_file(output, filename, tests, testfile_includes, used_mocks)
529529
' --suite_setup="" - code to execute for setup of entire suite',
530530
' --suite_teardown="" - code to execute for teardown of entire suite',
531531
' --use_param_tests=1 - enable parameterized tests (disabled by default)',
532-
' --omit_begin_end=1 - omit calls to UnityBegin and UnityEnd (disabled by default)',
532+
' --omit_begin_end=1 - omit calls to UnityBegin and UNITY_END (disabled by default)',
533533
' --header_file="" - path/name of test header file to generate too'].join("\n")
534534
exit 1
535535
end

0 commit comments

Comments
 (0)