PageRenderTime 46ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/gems/ruby-debug-0.10.2/test/test-catch.rb

https://github.com/technicalpickles/flockup
Ruby | 25 lines | 16 code | 5 blank | 4 comment | 0 complexity | 1dee8ad52e3af53e76164b44fa723099 MD5 | raw file
Possible License(s): GPL-2.0
  1. #!/usr/bin/env ruby
  2. require 'test/unit'
  3. # begin require 'rubygems' rescue LoadError end
  4. # require 'ruby-debug'; Debugger.start
  5. # Test condition command
  6. class TestBreakpoints < Test::Unit::TestCase
  7. @@SRC_DIR = File.dirname(__FILE__) unless
  8. defined?(@@SRC_DIR)
  9. require File.join(@@SRC_DIR, 'helper')
  10. include TestHelper
  11. def test_basic
  12. testname='catch'
  13. Dir.chdir(@@SRC_DIR) do
  14. script = File.join('data', testname + '.cmd')
  15. assert_equal(true,
  16. run_debugger(testname,
  17. "--script #{script} -- pm.rb"))
  18. end
  19. end
  20. end