> -----Original Message----- > From: U.Nakamura [mailto:usa / garbagecollect.jp] > Sent: Monday, January 03, 2005 11:36 AM > To: ruby-core / ruby-lang.org > Subject: Re: [BUG] Win32: rb_sys_fail() - errno == 0 > > > Hello, > > In message "Re: [BUG] Win32: rb_sys_fail() - errno == 0" > on Jan.04,2005 01:32:54, <Daniel.Berger / qwest.com> wrote: > | Although Florian's original code seems to work fine, I > still see this > | error in win32-process when I attempt to use rb_sys_fail(0) in the > | Process.kill code. > > How should I do to reproduce the bug? Download win32-process-0.3.1 Modify process.c, and replace the rb_raise() functions with rb_sys_fail(0) in the process_kill() function. You should see where I've commented them out. Modify tc_process.rb. In the "test_process_does_not_exist" method, replace the one and only assertion like this: def test_process_does_not_exist assert_raises(Errno::ENOENT){ Process.kill(0,9999999) } end Then, try to run the test suite. Regards, Dan