mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-22 16:05:58 +01:00
Merge pull request #669 from jonhenneberg/master
Fix filename sanitization with command line option
This commit is contained in:
@@ -389,7 +389,7 @@ class UnityTestRunnerGenerator
|
||||
output.puts(' {')
|
||||
output.puts(' if (parse_status < 0)')
|
||||
output.puts(' {')
|
||||
output.puts(" UnityPrint(\"#{filename.gsub('.c', '')}.\");")
|
||||
output.puts(" UnityPrint(\"#{filename.gsub('.c', '').gsub(/\\/, '\\\\\\')}.\");")
|
||||
output.puts(' UNITY_PRINT_EOL();')
|
||||
tests.each do |test|
|
||||
if (!@options[:use_param_tests]) || test[:args].nil? || test[:args].empty?
|
||||
|
||||
Reference in New Issue
Block a user