1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

merge revision(s) 57492: [Backport #12405]

test_queue.rb: fix portability

	* test/thread/test_queue.rb (test_queue_with_trap): fix
	  portability.  use SIGINT instead of SIGUSR2 which is supported
	  on not all platforms.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@58164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2017-03-27 15:49:01 +00:00
parent 8dbfd4b86c
commit 715f997ab7
2 changed files with 5 additions and 5 deletions

View file

@ -543,14 +543,14 @@ class TestQueue < Test::Unit::TestCase
end
def test_queue_with_trap
assert_in_out_err([], <<-INPUT, %w(USR2 USR2 exit), [])
assert_in_out_err([], <<-INPUT, %w(INT INT exit), [])
q = Queue.new
trap(:USR2){
q.push 'USR2'
trap(:INT){
q.push 'INT'
}
Thread.new{
loop{
Process.kill :USR2, $$
Process.kill :INT, $$
}
}
puts q.pop

View file

@ -1,6 +1,6 @@
#define RUBY_VERSION "2.3.3"
#define RUBY_RELEASE_DATE "2017-03-28"
#define RUBY_PATCHLEVEL 273
#define RUBY_PATCHLEVEL 274
#define RUBY_RELEASE_YEAR 2017
#define RUBY_RELEASE_MONTH 3