[ruby/reline] Fix tempfile leaks
(https://github.com/ruby/reline/pull/757) https://github.com/ruby/reline/actions/runs/11187507536/job/31104699331#step:13:1064 ``` Children under /tmp/rubytest.m48l5o: * -rw------- 1 101 2024-10-02 17:43:51 +0000 rubyfile20241002-60503-bhbfgq ``` https://github.com/ruby/reline/commit/1287f97a6f
This commit is contained in:
parent
e6fa7c3544
commit
802445487e
@ -471,6 +471,8 @@ class Reline::Test < Reline::TestCase
|
||||
w.close
|
||||
Process.waitpid pid
|
||||
end
|
||||
ensure
|
||||
File.delete(ruby_file.path) if ruby_file
|
||||
end
|
||||
|
||||
def get_reline_encoding
|
||||
|
@ -1814,6 +1814,9 @@ begin
|
||||
write "\ebg"
|
||||
assert_screen(/>abc\n>def\n>ghi\n/)
|
||||
close
|
||||
ensure
|
||||
File.delete(rubyfile.path) if rubyfile
|
||||
File.delete(pidfile.path) if pidfile
|
||||
end
|
||||
|
||||
def write_inputrc(content)
|
||||
|
Loading…
x
Reference in New Issue
Block a user