yarv-dev:581
From: SASADA Koichi <ko1 atdot.net>
Date: Tue, 16 Aug 2005 03:08:19 +0900
Subject: [yarv-dev:581] test on mswin32
ささだです。
今の rubyarv ... やっぱ変だな。ruby with yarv のテストは、
BASERUBY: ふつうの Ruby を用意して、
def exec exec_file, program
r = nil
IO.popen("#{exec_file}", 'r+'){|io|
#
io.write program
io.close_write
r = io.read
}
r
end
assert_equal(exec(BASERUBY, test_program),
exec(MINIRUBY, test_program))
こんな感じで、テストプログラムを実行させています。
ただ、mswin32 では IO.popen で双方向通信ができないようなのですが、何か
いい手はありませんかね?
--
// SASADA Koichi at atdot dot net
//
--
ML: yarv-dev quickml.atdot.net
使い方: http://www.atdot.net/~ko1/quickml
-> 581 2005-08-16 03:08 [ko1 atdot.net ] test on mswin32 586 2005-08-18 10:47 ┗[usa garbagecollect.j] 587 2005-08-18 11:48 ┗[usa garbagecollect.j]