Sha256: 0902ec10e1f724cc55e225964425fba59e30d50f804804083686f7921ee19b65
Contents?: true
Size: 608 Bytes
Versions: 2
Compression:
Stored size: 608 Bytes
Contents
$VERBOSE = true $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) if $0 == __FILE__ require 'rubygems' require 'minitest/autorun' require 'proco' class MTThreadedSub include Proco::MT::Threaded def initialize super end end class TestMTThreaded < MiniTest::Unit::TestCase def test_mt_base t = MTThreadedSub.new assert_equal false, t.running? status = nil t.spawn do while t.running? sleep 0.01 end status = :done end assert_equal true, t.running? t.exit assert_equal :done, status assert_equal false, t.running? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proco-0.0.2 | test/test_mt_threaded.rb |
proco-0.0.1 | test/test_mt_threaded.rb |