Skip to content

Commit

Permalink
Fix tempfile leaks
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
nobu committed Oct 5, 2024
1 parent ca457ff commit ba43c18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/reline/test_reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ def test_tty_amibuous_width
w.close
Process.waitpid pid
end
ensure
File.delete(ruby_file.path) if ruby_file
end

def get_reline_encoding
Expand Down
3 changes: 3 additions & 0 deletions test/reline/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,9 @@ def test_stop_continue
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)
Expand Down

0 comments on commit ba43c18

Please sign in to comment.