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

ruby-changes:35891

From: normal <ko1@a...>
Date: Thu, 16 Oct 2014 11:02:04 +0900 (JST)
Subject: [ruby-changes:35891] normal:r47972 (trunk): test/-ext-/bug_reporter/test_bug_reporter.rb: fix race

normal	2014-10-16 11:01:51 +0900 (Thu, 16 Oct 2014)

  New Revision: 47972

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47972

  Log:
    test/-ext-/bug_reporter/test_bug_reporter.rb: fix race
    
    Signal delivery is not immediate, so wait for signal delivery.
    
    * test/-ext-/bug_reporter/test_bug_reporter.rb
      (test_bug_reporter_add): fix race

  Modified files:
    trunk/ChangeLog
    trunk/test/-ext-/bug_reporter/test_bug_reporter.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47971)
+++ ChangeLog	(revision 47972)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 16 10:35:33 2014  Eric Wong  <e@8...>
+
+	* test/-ext-/bug_reporter/test_bug_reporter.rb
+	  (test_bug_reporter_add): fix race
+
 Thu Oct 16 10:09:02 2014  Eric Wong  <e@8...>
 
 	* test/ruby/test_rubyoptions.rb (test_segv_test): fix race
Index: test/-ext-/bug_reporter/test_bug_reporter.rb
===================================================================
--- test/-ext-/bug_reporter/test_bug_reporter.rb	(revision 47971)
+++ test/-ext-/bug_reporter/test_bug_reporter.rb	(revision 47972)
@@ -16,7 +16,7 @@ class TestBugReporter < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/-ext-/bug_reporter/test_bug_reporter.rb#L16
 
     args = ["--disable-gems", "-r-test-/bug_reporter/bug_reporter",
             "-C", tmpdir]
-    stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$"
+    stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$; sleep"
     _, stderr, status = EnvUtil.invoke_ruby(args, stdin, false, true)
     assert_pattern_list(expected_stderr, stderr)
   ensure

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

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