Test/rinda でのスレッド

e$BC.2H$G$9!#e(B

(teste$B$Ne(B)Buge$B$G$O$J$$$h$&$J5$$,$9$k$7e(BFeaturee$B$+$H8@$o$l$k$HG:$^$7$$$N$G!"$=$N$^$^e(BMLe$B$KEj9F$7$^$9!#e(B
test_rindae$B$Ge(Btestcasee$BJ,$Ne(Bthreade$B$,@8@.$5$l$F$=$N$^$^;D$k$N$G$9$,!"@:?@1R@8E*$KNI$/$J$$$N$H%G%P%C%/$N;~$K<YKb$J$N$G>C$;$k$h$&$K$G$-$^$;$s$+!)!d31$5$se(B

#e$B$D$^$j!"%P%0$,$I$3$+$G5/$-$?;~!"$^$:e(BThreade$B$N%P%0$+$I$&$+$N@Z$jJ,$1$+$i$7$J$$$H$$$1$J$$!#e(B
#Rindae$B$C$FDd;_$N%a%=%C%I$,L5$$$s$G$9$M!#e(B

Index: test_rinda.rb

test_rinda.rb (e$B%j%S%8%g%se(B 27982)
+++ test_rinda.rb (e$B:n6H%3%T!<e(B)
@@ -519,6 +519,10 @@
ThreadGroup.new.add(Thread.current)
@ts = Rinda::TupleSpace.new(1)
end

  • def teardown
  • implementation-dependent

  • keeper = @ts.instance_eval{@keeper.kill if @keeper}
  • end
    end

class TupleSpaceProxyTest < Test::Unit::TestCase
@@ -529,6 +533,10 @@
@ts_base = Rinda::TupleSpace.new(1)
@ts = Rinda::TupleSpaceProxy.new(@ts_base)
end

  • def teardown

  • implementation-dependent

  • keeper = @ts_base.instance_eval{@keeper.kill if @keeper}

  • end

    def test_remote_array_and_hash
    @ts.write(DRbObject.new([1, 2, 3]))

e$B31$H$$$$$^$9!#e(B

On 2010/05/24, at 9:01, Masaya TARUI wrote:

===================================================================
end
e$B5$;}$A$O$o$+$j$^$9!#$:$C$H5$$K$J$C$F$^$7$?!#e(B

e$B$3$&$$$&e(Bteardowne$B=q$$$F$bNI$$$N$+$J!#e(B
e$B$I$&$;<BAu0MB8$@$7!"$^$$$C$+!#e(B

e$B$7$P$i$/BT$C$FH?BP0U8+$,L5$+$C$?$i$=$s$J46$8$G=$@5$7$^$9!#e(B