File: test_tty_ambiguous_width-Use-Reline.test_rubybin.patch

package info (click to toggle)
ruby3.4 3.4.5-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 154,784 kB
  • sloc: ruby: 1,259,653; ansic: 829,955; yacc: 28,233; pascal: 7,359; sh: 3,864; python: 1,799; cpp: 1,158; asm: 808; makefile: 801; javascript: 414; lisp: 109; perl: 62; awk: 36; sed: 4; xml: 4
file content (23 lines) | stat: -rw-r--r-- 903 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Sorah Fukumori <her@sorah.jp>
Date: Thu, 26 Dec 2024 03:50:06 +0900
Subject: test_tty_ambiguous_width: Use Reline.test_rubybin

Same as https://github.com/ruby/reline/pull/510, 'ruby' command is not
always available so don't rely on that specific name.
---
 test/reline/test_reline.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/reline/test_reline.rb b/test/reline/test_reline.rb
index 0a4f389..691ed9f 100644
--- a/test/reline/test_reline.rb
+++ b/test/reline/test_reline.rb
@@ -446,7 +446,7 @@ class Reline::Test < Reline::TestCase
     RUBY
     ruby_file.close
     lib = File.expand_path('../../lib', __dir__)
-    cmd = [{ 'TERM' => 'xterm' }, 'ruby', '-I', lib, ruby_file.to_path]
+    cmd = [{ 'TERM' => 'xterm' }, Reline.test_rubybin, '-I', lib, ruby_file.to_path]
 
     # Calculate ambiguous width from cursor position
     [1, 2].each do |ambiguous_width|