* bootstraptest/test_{knownbug,thread}.rb: support fork-less platform.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
105a669631
commit
3b6f862b3a
@ -68,11 +68,15 @@ assert_equal 'ok', %q{
|
|||||||
|
|
||||||
assert_equal 'true', %{
|
assert_equal 'true', %{
|
||||||
t = Thread.new { loop {} }
|
t = Thread.new { loop {} }
|
||||||
|
begin
|
||||||
pid = fork {
|
pid = fork {
|
||||||
exit t.status != "run"
|
exit t.status != "run"
|
||||||
}
|
}
|
||||||
Process.wait pid
|
Process.wait pid
|
||||||
$?.success?
|
$?.success?
|
||||||
|
rescue NotImplementedError
|
||||||
|
true
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_valid_syntax('1.times {|i|print (42),1;}', '[ruby-list:44479]')
|
assert_valid_syntax('1.times {|i|print (42),1;}', '[ruby-list:44479]')
|
||||||
|
@ -202,9 +202,13 @@ end
|
|||||||
}, '[ruby-dev:31371]'
|
}, '[ruby-dev:31371]'
|
||||||
assert_equal 'true', %{
|
assert_equal 'true', %{
|
||||||
t = Thread.new { loop {} }
|
t = Thread.new { loop {} }
|
||||||
|
begin
|
||||||
pid = fork {
|
pid = fork {
|
||||||
exit t.status != "run"
|
exit t.status != "run"
|
||||||
}
|
}
|
||||||
Process.wait pid
|
Process.wait pid
|
||||||
$?.success?
|
$?.success?
|
||||||
|
rescue NotImplementedError
|
||||||
|
true
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user