class TestUtilPid

Public Instance Methods

test_all() click to toggle source
# File vendor/qwik/lib/qwik/util-pid.rb, line 40
def test_all
  f = 'test-pid.txt'

  # test_exist_pid_file?
  assert_equal false, exist_pid_file?(f)

  # test_write_pid_file
  write_pid_file(f)
  assert_equal true, exist_pid_file?(f)

  # test_read_pid_file
  assert_equal Process.pid, read_pid_file(f)
  
  # test_remove_pid_file
  remove_pid_file(f)
  assert_equal false, exist_pid_file?(f)
end