提交 bc307bd6 编写于 作者: M Mark VanderVoord

properly slash paths passed to UnityBegin in test runner generator

上级 98e8590f
......@@ -290,7 +290,7 @@ class UnityTestRunnerGenerator
output.puts("int main(void)")
output.puts("{")
output.puts(" suite_setup();") unless @options[:suite_setup].nil?
output.puts(" UnityBegin(\"#{filename}\");")
output.puts(" UnityBegin(\"#{filename.gsub(/\\/,'\\\\')}\");")
if (@options[:use_param_tests])
tests.each do |test|
if ((test[:args].nil?) or (test[:args].empty?))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册