masterkain / macruby

Ruby 1.9 ported to run directly on top of Mac OS X core technologies. Trunk mirror.

This URL has Read+Write access

macruby / bootstraptest / test_fork.rb
100644 11 lines (10 sloc) 0.165 kb
1
2
3
4
5
6
7
8
9
10
11
assert_equal '0', %q{
begin
GC.stress = true
pid = fork {}
Process.wait pid
$?.to_i
rescue NotImplementedError
0
end
}, '[ruby-dev:32404]'