Fix to replace only -e
that is a path name in assert_crash_report
This commit is contained in:
parent
5537a41059
commit
01c7656775
@ -861,7 +861,7 @@ class TestRubyOptions < Test::Unit::TestCase
|
|||||||
FileUtils.mkpath(File.join(dir, File.dirname(cmd)))
|
FileUtils.mkpath(File.join(dir, File.dirname(cmd)))
|
||||||
File.write(File.join(dir, cmd), SEGVTest::KILL_SELF+"\n")
|
File.write(File.join(dir, cmd), SEGVTest::KILL_SELF+"\n")
|
||||||
c = Regexp.quote(cmd)
|
c = Regexp.quote(cmd)
|
||||||
list = list.map {|re| Regexp.new(re.source.gsub(/-e/) {c}, re.options)}
|
list = list.map {|re| Regexp.new(re.source.gsub(/^\s*(\(\?:)?\K-e(?=:)/) {c}, re.options)}
|
||||||
else
|
else
|
||||||
cmd = ['-e', SEGVTest::KILL_SELF]
|
cmd = ['-e', SEGVTest::KILL_SELF]
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user