Sha256: cb035948e15282fc4687a5919d173bd7bcb6e2d14134623dbb64710bd22c5262

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

#!/usr/bin/env ruby
require File.expand_path("../helper", __FILE__)

# Test simple thread commands
class TestInfoThread < Test::Unit::TestCase
  include TestHelper

  def test_basic
    testname='info-thread'
    filter = Proc.new{|got_lines, correct_lines|
      [got_lines, correct_lines].each do |a|
        a.each do |s|
          s.gsub!(/Thread:0x[0-9a-f]+/, 'Thread:0x12345678')
        end
      end
      got_lines.each do |s|
        s.gsub!(/run>[ \t]+.*gcd.rb:4/, "run> gcd.rb:4")
      end
    }
    script = File.join('data', testname + '.cmd')
    assert(run_debugger(testname, "--script #{script} -- ./example/gcd.rb 3 5",
                        :filter => filter))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-debug-0.10.5.rc1 test/test-info-thread.rb