mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
10 lines
308 B
Ruby
10 lines
308 B
Ruby
# frozen_string_literal: false
|
|
require 'test/unit'
|
|
|
|
class TestTiemout < Test::Unit::TestCase
|
|
def test_timeout
|
|
cmd = [*@__runner_options__[:ruby], "#{File.dirname(__FILE__)}/test4test_timeout.rb"]
|
|
result = IO.popen(cmd, err: [:child, :out], &:read)
|
|
assert_not_match(/^T{10}$/, result)
|
|
end
|
|
end
|