Sha256: f16bee86f6606d34a6501d944f105abb23b481360bc15680188682990f11b926
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
#!/usr/bin/env ruby require 'test/unit' 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(true) ########### b1 ############### x = 6 y = 7 z = 8 ############################## d.stop out = ['line ', 'x = 6', 'basename is on.', "Breakpoint 1 set at VM offset 55 of instruction sequence \"test_condition\", \tline 55 in file foo.rb"] 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(true) ########### b2 ############### x = 6 y = 7 z = 8 ############################## d.stop out = ["line ", "x = 6", "basename is on.", "Breakpoint 1 set at VM offset 55 of instruction sequence \"test_condition\", \tline 55 in file foo.rb", "brkpt ", "y = 7"] compare_output(out, d, cmds) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trepanning-2.15.35 | test/functional/test-condition.rb |
trepanning-2.15.33 | test/functional/test-condition.rb |