Sha256: d74f0e39104990b5c00d45e0dc321bcd6677456ef532b307dbb4bef636033799
Contents?: true
Size: 715 Bytes
Versions: 5
Compression:
Stored size: 715 Bytes
Contents
#!/usr/bin/env ruby require_relative './mock-helper' require_relative '../../processor/command/quit' class TestCommandQuit < Test::Unit::TestCase include MockUnitHelper def setup @name = File.basename(__FILE__, '.rb').split(/-/)[2] common_setup(@name) end def test_basic skip('need a working fork') unless Process.respond_to?(:fork) pid = fork { @cmd.run([@name, '10']) } Process.wait assert_equal(10, $?.exitstatus) pid = fork { @cmd.run([@name]) } Process.wait assert_equal(0, $?.exitstatus) # FIXME: should test that finalization routines get run; # should test 'confirm' gets run; and should test that # 'unconditional' is handled correctly. end end
Version data entries
5 entries across 5 versions & 1 rubygems