Skip to content

Commit

Permalink
Skip three tests on FreeBSD 13
Browse files Browse the repository at this point in the history
Some tests that use signals frequently fail randomly on FreeBSD 13.
Maybe something around signals has changed in FreeBSD 13.
This change skips them tentatively.
  • Loading branch information
mame committed Mar 8, 2022
1 parent faff37d commit 17e09f0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
9 changes: 9 additions & 0 deletions test/excludes/TestThread.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# frozen_string_literal: false
exclude(/_stack_size$/, 'often too expensive')
if /freebsd13/ =~ RUBY_PLATFORM
# http://rubyci.s3.amazonaws.com/freebsd13/ruby-master/log/20220216T143001Z.fail.html.gz
#
# 1) Error:
# TestThread#test_signal_at_join:
# Timeout::Error: execution of assert_separately expired timeout (120 sec)
# pid 30743 killed by SIGABRT (signal 6) (core dumped)
# |
#
# /usr/home/chkbuild/chkbuild/tmp/build/20220216T143001Z/ruby/test/ruby/test_thread.rb:1390:in `test_signal_at_join'
exclude(:test_signal_at_join, 'gets stuck somewhere')
end
9 changes: 9 additions & 0 deletions test/excludes/TestThreadQueue.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: false
if /freebsd13/ =~ RUBY_PLATFORM
# http://rubyci.s3.amazonaws.com/freebsd13/ruby-master/log/20220308T023001Z.fail.html.gz
#
# 1) Failure:
# TestThreadQueue#test_thr_kill [/usr/home/chkbuild/chkbuild/tmp/build/20220308T023001Z/ruby/test/ruby/test_thread_queue.rb:175]:
# only 169/250 done in 60 seconds.
exclude(:test_thr_kill, 'gets stuck somewhere')
end
9 changes: 8 additions & 1 deletion test/io/console/test_io_console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,14 @@ def test_intr
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("Interrupt", cc, r, w) unless /linux|solaris/ =~ RUBY_PLATFORM
end
if cc = ctrl["dsusp"]
# This test fails randomly on FreeBSD 13
# http://rubyci.s3.amazonaws.com/freebsd13/ruby-master/log/20220304T163001Z.fail.html.gz
#
# 1) Failure:
# TestIO_Console#test_intr [/usr/home/chkbuild/chkbuild/tmp/build/20220304T163001Z/ruby/test/io/console/test_io_console.rb:387]:
# <"25"> expected but was
# <"-e:12:in `p': \e[1mexecution expired (\e[1;4mTimeout::Error\e[m\e[1m)\e[m">.
if cc = ctrl["dsusp"] && /freebsd/ !~ RUBY_PLATFORM
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("#{cc.ord}", cc, r, w)
Expand Down

0 comments on commit 17e09f0

Please sign in to comment.