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

ruby-changes:56816

From: Nobuyoshi <ko1@a...>
Date: Mon, 5 Aug 2019 12:16:24 +0900 (JST)
Subject: [ruby-changes:56816] Nobuyoshi Nakada: 6a265278b5 (master): Check if signaled

https://git.ruby-lang.org/ruby.git/commit/?id=6a265278b5

From 6a265278b56eb3f0bab84fbed0c302f4c5ea8c6d Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 5 Aug 2019 12:16:03 +0900
Subject: Check if signaled


diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb
index ec6bd02..ca1b68a 100644
--- a/test/ruby/test_fiber.rb
+++ b/test/ruby/test_fiber.rb
@@ -348,8 +348,10 @@ class TestFiber < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_fiber.rb#L348
     env = {}
     env['RUBY_FIBER_VM_STACK_SIZE'] = vm_stack_size.to_s if vm_stack_size
     env['RUBY_FIBER_MACHINE_STACK_SIZE'] = machine_stack_size.to_s if machine_stack_size
-    out, _ = Dir.mktmpdir("test_fiber") {|tmpdir|
-      EnvUtil.invoke_ruby([env, '-e', script], '', true, true, chdir: tmpdir, timeout: 30)
+    out = Dir.mktmpdir("test_fiber") {|tmpdir|
+      out, err, status = EnvUtil.invoke_ruby([env, '-e', script], '', true, true, chdir: tmpdir, timeout: 30)
+      assert(!status.signaled?, FailDesc[status, nil, err])
+      out
     }
     use_length ? out.length : out
   end
-- 
cgit v0.10.2


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

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