test/test-hist.rb in debugger-1.0.0 vs test/test-hist.rb in debugger-1.0.1

- old
+ new

@@ -1,9 +1,8 @@ #!/usr/bin/env ruby require 'test/unit' -# begin require 'rubygems' rescue LoadError end # require 'ruby-debug'; Debugger.start # Test history commands class TestHistory < Test::Unit::TestCase @@ -22,12 +21,12 @@ # Set up history file to read from. ENV['HOME']=@@SRC_DIR ENV['RDEBUG'] = nil - debugger_commands = ['show commands', - 'set history save on', + debugger_commands = ['show commands', + 'set history save on', 'show history', 'quit unconditionally'] debugger_output = 'test-history.out' Dir.chdir(@@SRC_DIR) do @@ -40,17 +39,17 @@ # Now that we've set up a history file, run the debugger # and check that it's reading that correctly. debug_pgm=File.join('..', 'rdbg.rb') debugged=File.join('gcd.rb') - IO.popen("#{debug_pgm} #{debugged} 3 5 >#{debugger_output}", 'w') do + IO.popen("#{debug_pgm} #{debugged} 3 5 >#{debugger_output}", 'w') do |pipe| debugger_commands.each do |cmd| pipe.puts cmd end end - + # Compare output got_lines = File.read(@@FILE_HISTORY).split(/\n/) # FIXME: Disable for now. assert true, 'FIXME' return @@ -62,7 +61,5 @@ assert nil, 'Output differs' end end end end - -