mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-10-17 04:19:16 +08:00
properly slash paths passed to UnityBegin in test runner generator
This commit is contained in:
@ -290,7 +290,7 @@ class UnityTestRunnerGenerator
|
|||||||
output.puts("int main(void)")
|
output.puts("int main(void)")
|
||||||
output.puts("{")
|
output.puts("{")
|
||||||
output.puts(" suite_setup();") unless @options[:suite_setup].nil?
|
output.puts(" suite_setup();") unless @options[:suite_setup].nil?
|
||||||
output.puts(" UnityBegin(\"#{filename}\");")
|
output.puts(" UnityBegin(\"#{filename.gsub(/\\/,'\\\\')}\");")
|
||||||
if (@options[:use_param_tests])
|
if (@options[:use_param_tests])
|
||||||
tests.each do |test|
|
tests.each do |test|
|
||||||
if ((test[:args].nil?) or (test[:args].empty?))
|
if ((test[:args].nil?) or (test[:args].empty?))
|
||||||
|
Reference in New Issue
Block a user