Module: Process

Defined in:
lib/rake/test_case.rb

Class Method Summary collapse

Class Method Details

.expected(status) ⇒ Object



11
12
13
14
# File 'lib/rake/test_case.rb', line 11

def self.expected status
  @@expected ||= []
  @@expected << status
end

.waitpid2(pid) ⇒ Object



19
20
21
# File 'lib/rake/test_case.rb', line 19

def waitpid2(pid)
  [ @@expected.shift ]
end

.waitpid2_oldObject



17
# File 'lib/rake/test_case.rb', line 17

alias :waitpid2_old :waitpid2