ruby-changes:60546
From: Yusuke <ko1@a...>
Date: Sat, 28 Mar 2020 11:14:11 +0900 (JST)
Subject: [ruby-changes:60546] 6eb3820aad (master): spec/ruby/optional/capi/kernel_spec.rb: stop a spec that causes SEGV
https://git.ruby-lang.org/ruby.git/commit/?id=6eb3820aad From 6eb3820aad1668b6b09c68929840dff2cfda04c0 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sat, 28 Mar 2020 11:12:30 +0900 Subject: spec/ruby/optional/capi/kernel_spec.rb: stop a spec that causes SEGV I think the wrong terminating argument cannot work. To stop the noisy CI failures, the spec is tentatively suspended. diff --git a/spec/ruby/optional/capi/kernel_spec.rb b/spec/ruby/optional/capi/kernel_spec.rb index 7795baa..00a5781 100644 --- a/spec/ruby/optional/capi/kernel_spec.rb +++ b/spec/ruby/optional/capi/kernel_spec.rb @@ -392,16 +392,24 @@ describe "C-API Kernel function" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/kernel_spec.rb#L392 }.should raise_error(TypeError) end - it "works when the terminating argument has not been sizes as a VALUE" do - proc = -> x { x } - arg_error_proc = -> *_ { raise ArgumentError, '' } - run_error_proc = -> *_ { raise RuntimeError, '' } - type_error_proc = -> *_ { raise TypeError, '' } - @s.rb_rescue2_wrong_arg_type(arg_error_proc, :no_exc, proc, :exc, ArgumentError, RuntimeError).should == :exc - @s.rb_rescue2_wrong_arg_type(run_error_proc, :no_exc, proc, :exc, ArgumentError, RuntimeError).should == :exc - -> { - @s.rb_rescue2_wrong_arg_type(type_error_proc, :no_exc, proc, :exc, ArgumentError, RuntimeError) - }.should raise_error(TypeError) + if false # pending + # This spec causes core dump on many platforms: + # * https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos7/ruby-master/log/20200328T003002Z.fail.html.gz + # * https://rubyci.org/logs/rubyci.s3.amazonaws.com/archlinux/ruby-master/log/20200328T003503Z.fail.html.gz + # * https://rubyci.org/logs/rubyci.s3.amazonaws.com/android28-x86_64/ruby-master/log/20200328T014134Z.fail.html.gz + # * http://ci.rvm.jp/results/trunk_gcc4@silicon-docker/2829165 + # * http://ci.rvm.jp/results/trunk_clang_60@silicon-docker/2829309 + it "works when the terminating argument has not been sizes as a VALUE" do + proc = -> x { x } + arg_error_proc = -> *_ { raise ArgumentError, '' } + run_error_proc = -> *_ { raise RuntimeError, '' } + type_error_proc = -> *_ { raise TypeError, '' } + @s.rb_rescue2_wrong_arg_type(arg_error_proc, :no_exc, proc, :exc, ArgumentError, RuntimeError).should == :exc + @s.rb_rescue2_wrong_arg_type(run_error_proc, :no_exc, proc, :exc, ArgumentError, RuntimeError).should == :exc + -> { + @s.rb_rescue2_wrong_arg_type(type_error_proc, :no_exc, proc, :exc, ArgumentError, RuntimeError) + }.should raise_error(TypeError) + end end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/