# File test/test_rc_d.rb, line 98 def test_locked_by_dead_process File.open(@lock, 'w') {|output| output.write(DEAD_PID.to_s + "\n") } @rc_d.lock assert_equal(SELF_PID.to_s + "\n", File.open(@lock) {|input| input.read }) assert_equal(1, @proc_alive_call) assert_equal(DEAD_PID, @proc_alive_pid) end