提交 432e6313 编写于 作者: M mvandervoord

- finished strict ordering support

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