Sha256: a26ae030513cd247d12e774cbd4f9437d72d28724eafd0d501511be02ff7b14b

Contents?: true

Size: 716 Bytes

Versions: 5

Compression:

Stored size: 716 Bytes

Contents

#!/usr/bin/env ruby
require 'test/unit'
require_relative 'helper'

class TestQuit < Test::Unit::TestCase
  @@NAME = File.basename(__FILE__, '.rb')[5..-1]

  def test_trepan_call
    skip('need a usable fork to run this') unless Process.respond_to?(:fork) 
    skip('Not ready for prime time yet')
    cmdfile = File.join(File.dirname(__FILE__), '../data/quit.cmd')
    child = fork
    if child
      ## FIXME: client doesn't work with cmdfile yet.
      serveropts = {:dbgr => '--client', :cmdfile => cmdfile}
      run_debugger(@@NAME, 'gcd.rb', serveropts)
      Process.wait
    else
      clientopts = {:dbgr => '--server', :nocommand => true}
      run_debugger(@@NAME, 'gcd.rb', clientopts)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trepanning-2.15.35 test/integration/test-remote.rb
trepanning-1.93.35 test/integration/test-remote.rb
trepanning-2.15.33 test/integration/test-remote.rb
trepanning-1.93.32 test/integration/test-remote.rb
trepanning-0.1.6 test/integration/test-remote.rb