Sha256: c452fffb2f0e3243a603c2a5d85825770d8f9c1c6db6ad140879e9939b248c58
Contents?: true
Size: 1.38 KB
Versions: 3
Compression:
Stored size: 1.38 KB
Contents
#!/usr/bin/env ruby require 'test/unit' require 'trace' require_relative 'fn_helper' require_relative '../../app/breakpoint' class TestBreak < Test::Unit::TestCase include FnTestHelper def test_condition file = File.basename(__FILE__) # See that we can next with parameter which is the same as 'next 1' cmds = ['set basename on', 'break ' + (__LINE__ + 7).to_s, 'condition 1 x < 5', 'continue'] d = strarray_setup(cmds) d.start ########### b1 ############### x = 6 y = 7 z = 8 ############################## d.stop out = ['-- ', 'x = 6', 'basename is on.', "Breakpoint 1 set at line 55 in file foo.rb, \tVM offset 55 of instruction sequence \"test_condition\"."] compare_output(out, d, cmds) # Try a condition that fails cmds = ['set basename on', 'break ' + (__LINE__ + 7).to_s, 'condition 1 x > 5', 'continue'] d = strarray_setup(cmds) d.start ########### b2 ############### x = 6 y = 7 z = 8 ############################## d.stop out = ["-- ", "x = 6", "basename is on.", "Breakpoint 1 set at line 55 in file foo.rb, \tVM offset 55 of instruction sequence \"test_condition\".", "xx ", "y = 7"] compare_output(out, d, cmds) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trepanning-0.1.0 | test/functional/test-condition.rb |
trepanning-0.0.9 | test/functional/test-condition.rb |
trepanning-0.0.8 | test/functional/test-condition.rb |