diff options
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index ce80beabdd..c5c9d8af79 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1566,11 +1566,13 @@ class TestProcess < Test::Unit::TestCase Marshal.dump(Process.getsid, STDOUT) newsid = Process.setsid Marshal.dump(newsid, STDOUT) + Marshal.dump(Process.getsid($$), STDOUT) STDOUT.flush EOS - assert_equal(Marshal.load(io), Process.getsid) - assert_equal(Marshal.load(io), Process.getsid(io.pid)) + newsid = Marshal.load(io) + getsid = Marshal.load(io) + assert_equal(newsid, getsid) end end end |