mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-10-01 06:27:22 +00:00
Fix slashes in arguments to test runner generator
This commit is contained in:
@@ -467,7 +467,7 @@ class UnityTestRunnerGenerator
|
|||||||
output.puts(' UNITY_PRINT_EOL();')
|
output.puts(' UNITY_PRINT_EOL();')
|
||||||
else
|
else
|
||||||
test[:args].each do |args|
|
test[:args].each do |args|
|
||||||
output.puts(" UnityPrint(\" #{test[:test]}(#{args.gsub('"', '').gsub("\n", '')})\");")
|
output.puts(" UnityPrint(\" #{test[:test]}(#{args.gsub('"', '').gsub("\n", '').gsub(/\\/, '\\\\\\')})\");")
|
||||||
output.puts(' UNITY_PRINT_EOL();')
|
output.puts(' UNITY_PRINT_EOL();')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user