diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-09 14:48:10 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-11-09 14:52:48 +0900 |
commit | 6cf7c0a48fb07a765d447404aba33636d9d87c89 (patch) | |
tree | 49cf6dc54511db445a4b8dd217c2fd9b298d76b8 /test/readline/test_readline.rb | |
parent | 1290bdf1aeeefa5c7855b9654cc8aa9e1e740f45 (diff) |
test/readline/test_readline.rb: skip a test on i686-linux
... because readline library (or libtinfo) seems to cause SEGV
internally even with Readline 8.1.
This SEGV is caught as SystemStackError, which leads to a test failure.
http://rubyci.s3.amazonaws.com/debian-i386/ruby-master/log/20211109T030008Z.fail.html.gz
```
1) Failure:
TestReadline#test_interrupt_in_other_thread [/home/chkbuild/chkbuild/tmp/build/20211109T030008Z/ruby/test/readline/test_readline.rb:568]:
Unknown failure with exit status pid 13097 exit 1
Log: ** START **Readline::VERSION is 8.1.
/home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `readline': stack level too deep (SystemStackError)
from /home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `block in <main>'
/home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `readline': stack level too deep (SystemStackError)
from /home/chkbuild/chkbuild/tmp/build/20211109T030008Z/tmp/interrupt_in_other_thread20211109-6272-kcfqxo:13:in `block in <main>'
```
Diffstat (limited to 'test/readline/test_readline.rb')
-rw-r--r-- | test/readline/test_readline.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 2dc5de756a..f59e9ee900 100644 --- a/test/readline/test_readline.rb +++ b/test/readline/test_readline.rb @@ -488,6 +488,12 @@ module BasetestReadline omit "Skip Readline 7.0" if Readline::VERSION == "7.0" omit unless respond_to?(:assert_ruby_status) omit if /mswin|mingw/ =~ RUBY_PLATFORM + + # On 32-bit machine, readline library (or libtinfo) seems to cause SEGV internally even with Readline 8.0 + # GDB Backtrace: https://gist.github.com/mame/d12b9de3bbc3f16d440c1927398d176a + # Maybe the same issue: https://github.com/facebookresearch/nle/issues/120 + omit if /i[3-6]86-linux/ =~ RUBY_PLATFORM + code = <<-"end;" $stdout.sync = true require 'readline' |