DRb e$B$N%F%9%H$r$9$k$H!“e(B(e$B%F%9%H$,$$$m$$$m$H<:GT$9$kB>$Ke(B)
e$B%W%me(B
e$B%;%9$,;D$k$3$H$,$”$j$^$9!#e(B
% ./ruby test/runner.rb drb
…
107 tests, 454 assertions, 3 failures, 19 errors
% ps auxww|grep ut_eval
akr 10687 0.0 0.2 8628 3552 pts/6 Sl 21:20 0:00
/home/akr/ruby/yarvo0/ruby/ruby
/home/akr/ruby/yarvo0/ruby/test/drb/ut_eval.rb druby://localhost:33972
ut_eval.rb
akr 11319 0.0 0.0 4256 760 pts/6 R+ 21:21 0:00 grep
ut_eval
%
boron e$B$G$d$C$F$$$ke(B chkbuild e$B$G$O!"$=$&$$$&%W%m%;%9$,$?$^$k$Ne(B
e$B$G$?$^$K<jF0$Ge(B kill e$B$9$kI,MW$,$"$j$^$9!#e(B
e$B$3$l$OLLE]$J$N$G!"%W%m%;%9$,;D$i$J$$$h$&$K$G$-$J$$$b$N$G$7$ge(B
e$B$&$+e(B?
å’³ã¨ã„ã„ã¾ã™ã€‚
On 2007/11/24, at 21:27, Tanaka A. wrote:
ut_eval.rb druby://localhost:33972 ut_eval.rb
akr 11319 0.0 0.0 4256 760 pts/6 R+ 21:21 0:00
grep ut_eval
%
boron ã§ã‚„ã£ã¦ã„ã‚‹ chkbuild ã§ã¯ã€ãã†ã„ã†ãƒ—ãƒã‚»ã‚¹ãŒ
ãŸã¾ã‚‹ã®
ã§ãŸã¾ã«æ‰‹å‹•ã§ kill ã™ã‚‹å¿…è¦ãŒã‚ã‚Šã¾ã™ã€‚
ã“ã‚Œã¯é¢å€’ãªã®ã§ã€ãƒ—ãƒã‚»ã‚¹ãŒæ®‹ã‚‰ãªã„よã†ã«ã§ããªã„ã‚‚ã®ã§ã—ょ
ã†ã‹?
ãœã²ãã†ã—ãŸã„ã§ã™ã€‚ã©ã“ã§ã‚‚å‹•ããã†ãªã€ãªã«ã‹ã†ã¾ã„方法ã¯ãª
ã„ã§ã—ょã†ã‹?
プãƒã‚»ã‚¹ã®åˆ¶å¾¡ã‚‚dRubyã§å®Ÿè£…ã—ã¦ã„ã‚‹ã®ãŒã ã‚ãªæ°—ãŒã—ã¾ã™ã€‚
(dRubyã®ãƒ†ã‚¹ãƒˆãªã®ã«)
In article [email protected],
Masatoshi SEKI [email protected] writes:
e$B$<$R$=$&$7$?$$$G$9!#$I$3$G$bF0$-$=$&$J!"$J$K$+$&$^$$J}K!$O$Je(B
e$B$$$G$7$g$&$+e(B?
e$B%W%m%;%9$N@)8f$be(BdRubye$B$G<BAu$7$F$$$k$N$,$@$a$J5$$,$7$^$9!#e(B
(dRubye$B$N%F%9%H$J$N$Ke(B)
Process.kill e$B$G;&$9$H$$$&$N$G$O$@$a$J$s$G$7$g$&$+!#e(B
å’³ã¨ã„ã„ã¾ã™ã€‚
On 2007/11/26, at 7:42, Tanaka A. wrote:
In article [email protected],
Masatoshi SEKI [email protected] writes:
ãœã²ãã†ã—ãŸã„ã§ã™ã€‚ã©ã“ã§ã‚‚å‹•ããã†ãªã€ãªã«ã‹ã†ã¾ã„方法ã¯ãª
ã„ã§ã—ょã†ã‹?
プãƒã‚»ã‚¹ã®åˆ¶å¾¡ã‚‚dRubyã§å®Ÿè£…ã—ã¦ã„ã‚‹ã®ãŒã ã‚ãªæ°—ãŒã—ã¾ã™ã€‚
(dRubyã®ãƒ†ã‚¹ãƒˆãªã®ã«)
Process.kill ã§æ®ºã™ã¨ã„ã†ã®ã§ã¯ã ã‚ãªã‚“ã§ã—ょã†ã‹ã€‚
ç¾åœ¨ã€Windows環境ã§ã‚‚å‹•ãã®ã§ã¯ãªã„ã‹ã¨æœŸå¾…ã—ã¦
system()を使ã£ã¦ã‚µãƒ–プãƒã‚»ã‚¹ã‚’èµ·å‹•ã—ã¦ã¾ã™ã€‚
ãã®ãŸã‚Process.killã«å¿…è¦ãªpidãŒæ‰‹ã«å…¥ã‚‰ãªã„よã†
ãªæ°—ãŒã—ã¾ã™ã€‚
open3ãªã©ã‚’ã†ã¾ãã¤ã‹ãˆã°ã§ããŸã‚Šã—ã¾ã™ã‹?
ãã‚Œã‹ã‚‰
å•é¡Œã®ut_eval.rbãªã‚“ã§ã™ãŒã€ã†ã¾ãèµ·å‹•ã§ãã¦ã„ã¾ã›ã‚“ã§ã—ãŸã€‚
ut_eval.rbã‚’èµ·å‹•ã™ã‚‹ãƒ†ã‚¹ãƒˆã‚’無効ã«ã—ã¾ã—ãŸã€‚
ã¾ãŸã€ãれ以外ã®ã‚µãƒ–プãƒã‚»ã‚¹ã«ã¤ã„ã¦ã‚‚ã†ã¾ã終了ã§ããªã„ã€
teardownãŒEã«ãªã‚‹ã‚±ãƒ¼ã‚¹ã‚’見ã¤ã‘ãŸã®ã§ãれも修æ£ã—ã¾ã—ãŸã€‚
retry周りã®ã‚¨ãƒ©ãƒ¼ã€ã©ã†ã—よã†â€¥
e$B$J$+$@$G$9!#e(B
At Mon, 26 Nov 2007 23:53:45 +0900,
Masatoshi SEKI wrote in [ruby-dev:32368]:
e$B8=:_!"e(BWindowse$B4D6-$G$bF0$/$N$G$O$J$$$+$H4|BT$7$Fe(B
system()e$B$r;H$C$F%5%V%W%m%;%9$r5/F0$7$F$^$9!#e(B
e$B$=$N$?$ae(BProcess.kille$B$KI,MW$Je(Bpide$B$,<j$KF~$i$J$$$h$&e(B
e$B$J5$$,$7$^$9!#e(B
Windowse$B$K8B$i$:!"%7%’%k7PM3$G%P%C%/%0%i%&%s%I$K2s$7$F$$$k8B$j!“e(B
e$BD>@\e(Bpide$B$rF@$kJ}K!$O$”$j$^$;$s!#e(B1.9e$B8BDj$J$ie(B
Process.spawn e$B!“e(B1.8e$B$He(B
e$B6&DL$K$7$?$$$J$ie(BIO.popen(…, “w”).pid
e$B$”$?$j$G$I$&$G$7$g$&$+!#e(B
open3e$B$J$I$r$&$^$/$D$+$($P$G$-$?$j$7$^$9$+e(B?
e$B$$$^$N$H$3$m!"e(Bopen3e$B<+BN$,e(BWindowse$B$G$OF0$-$^$;$s!#e(B