[前][次][番号順一覧][スレッド一覧]

ruby-changes:67059

From: Yusuke <ko1@a...>
Date: Fri, 6 Aug 2021 10:40:15 +0900 (JST)
Subject: [ruby-changes:67059] 7af21a78fa (master): test/reline/test_terminfo.rb: skip when setupterm fails

https://git.ruby-lang.org/ruby.git/commit/?id=7af21a78fa

From 7af21a78fab75c953646c0c26779e634aa771345 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Fri, 6 Aug 2021 10:39:25 +0900
Subject: test/reline/test_terminfo.rb: skip when setupterm fails

http://rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20210806T000008Z.fail.html.gz
```
  1) Error:
Reline::Terminfo::Test#test_tigetstr:
Reline::Terminfo::TerminfoError: The terminfo database could not be found.
    /export/home/chkbuild/chkbuild-gcc/tmp/build/20210806T000008Z/ruby/lib/reline/terminfo.rb:84:in `setupterm'
    /export/home/chkbuild/chkbuild-gcc/tmp/build/20210806T000008Z/ruby/test/reline/test_terminfo.rb:6:in `setup'
```
---
 test/reline/test_terminfo.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/reline/test_terminfo.rb b/test/reline/test_terminfo.rb
index 6f98591..dcb64c2 100644
--- a/test/reline/test_terminfo.rb
+++ b/test/reline/test_terminfo.rb
@@ -4,6 +4,8 @@ require "reline" https://github.com/ruby/ruby/blob/trunk/test/reline/test_terminfo.rb#L4
 class Reline::Terminfo::Test < Reline::TestCase
   def setup
     Reline::Terminfo.setupterm(0, 2)
+  rescue Reline::Terminfo::TerminfoError
+    skip "Reline::Terminfo does not work"
   end
 
   def test_tigetstr
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]