提交 8b274116 编写于 作者: M mvandervoord

* fixed mistake in global ordering support in test runner generator

git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@33 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
上级 a395675c
......@@ -93,7 +93,7 @@ class UnityTestRunnerGenerator
output.puts('#include "BullseyeCoverage.h"') if @options[:coverage]
output.puts('')
output.puts('char MessageBuffer[50];')
output.puts('int GlobalExpectOrder;') if @options[:order]
output.puts('int GlobalExpectCount;') if @options[:order]
output.puts('int GlobalVerifyOrder;') if @options[:order]
end
......@@ -118,7 +118,7 @@ class UnityTestRunnerGenerator
unless (mocks.empty?)
output.puts("static void CMock_Init(void)")
output.puts("{")
output.puts("#{@tab}GlobalExpectOrder = 0;") if @options[:order]
output.puts("#{@tab}GlobalExpectCount = 0;") if @options[:order]
output.puts("#{@tab}GlobalVerifyOrder = 0;") if @options[:order]
mocks.each do |mock|
output.puts("#{@tab}#{mock}_Init();")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册