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

ruby-changes:71344

From: Yusuke <ko1@a...>
Date: Tue, 8 Mar 2022 16:09:31 +0900 (JST)
Subject: [ruby-changes:71344] 17e09f033c (master): Skip three tests on FreeBSD 13

https://git.ruby-lang.org/ruby.git/commit/?id=17e09f033c

From 17e09f033c4d3b786672ba16d2c5d935482a2fad Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Tue, 8 Mar 2022 16:06:37 +0900
Subject: Skip three tests on FreeBSD 13

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.
---
 test/excludes/TestThread.rb        | 9 +++++++++
 test/excludes/TestThreadQueue.rb   | 9 +++++++++
 test/io/console/test_io_console.rb | 9 ++++++++-
 3 files changed, 26 insertions(+), 1 deletion(-)
 create mode 100644 test/excludes/TestThreadQueue.rb

diff --git a/test/excludes/TestThread.rb b/test/excludes/TestThread.rb
index bec354a3bd..cf7e88427e 100644
--- a/test/excludes/TestThread.rb
+++ b/test/excludes/TestThread.rb
@@ -1,5 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/test/excludes/TestThread.rb#L1
 # 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
diff --git a/test/excludes/TestThreadQueue.rb b/test/excludes/TestThreadQueue.rb
new file mode 100644
index 0000000000..c8231e372a
--- /dev/null
+++ b/test/excludes/TestThreadQueue.rb
@@ -0,0 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/test/excludes/TestThreadQueue.rb#L1
+# 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
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index 3c29f9f2b3..67959f9eca 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -383,7 +383,14 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L383
         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)
-- 
cgit v1.2.1


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

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