mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bootstraptest/test_thread.rb: fix for environment where fork is not
available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c55dd9b7d8
commit
c43236eaf7
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Feb 24 01:22:19 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* bootstraptest/test_thread.rb: fix for environment where fork is not
|
||||||
|
available.
|
||||||
|
|
||||||
Tue Feb 24 01:19:38 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
Tue Feb 24 01:19:38 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* thread.c (thread_cleanup_func): unlock all locked mutexes even when
|
* thread.c (thread_cleanup_func): unlock all locked mutexes even when
|
||||||
|
|
|
@ -219,9 +219,13 @@ assert_equal 'true', %{
|
||||||
assert_equal 'ok', %{
|
assert_equal 'ok', %{
|
||||||
open("zzz.rb", "w") do |f|
|
open("zzz.rb", "w") do |f|
|
||||||
f.puts <<-END
|
f.puts <<-END
|
||||||
Thread.new { fork { GC.start } }.join
|
begin
|
||||||
pid, status = Process.wait2
|
Thread.new { fork { GC.start } }.join
|
||||||
$result = status.success? ? :ok : :ng
|
pid, status = Process.wait2
|
||||||
|
$result = status.success? ? :ok : :ng
|
||||||
|
rescue NotImplementedError
|
||||||
|
:ok
|
||||||
|
end
|
||||||
END
|
END
|
||||||
end
|
end
|
||||||
require "zzz.rb"
|
require "zzz.rb"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue