lib/grntest/tester.rb in grntest-1.2.8 vs lib/grntest/tester.rb in grntest-1.2.9

- old
+ new

@@ -216,10 +216,16 @@ "Timeout for each test", "(#{tester.timeout})") do |timeout| tester.timeout = timeout end + parser.on("--read-timeout=SECOND", Float, + "Timeout for each read in test", + "(#{tester.read_timeout})") do |timeout| + tester.read_timeout = timeout + end + parser.on("--[no-]debug", "Enable debug information", "(#{tester.debug?})") do |debug| tester.debug = debug end @@ -264,10 +270,11 @@ attr_accessor :n_workers attr_accessor :output attr_accessor :gdb, :default_gdb attr_accessor :valgrind, :default_valgrind attr_accessor :timeout + attr_accessor :read_timeout attr_writer :valgrind_gen_suppressions attr_writer :reporter, :keep_database, :use_color attr_writer :stop_on_failure attr_writer :suppress_omit_log attr_writer :suppress_backtrace @@ -301,9 +308,10 @@ @exclude_test_suite_patterns = [] detect_suitable_diff initialize_debuggers initialize_memory_checkers @timeout = 5 + @read_timeout = 3 end def run(*targets) succeeded = true return succeeded if targets.empty?