From: "H.Yamamoto" Date: 2004-05-15T12:09:20+09:00 Subject: [ruby-dev:23513] make test failed in bcc32 (ruby_1_8) 原因がわからないので、報告だけ。 bcc32 + ruby_1_8 で make test が失敗します。 E:\ruby-cvs\ruby_1_8>make test MAKE Version 5.2 Copyright (c) 1987, 2000 Borland E:/ruby-cvs/ruby_1_8/sample/test.rb:1668:in ``': Exec format error (Errno::ENOEX EC) - ./miniruby -x script_tmp from E:/ruby-cvs/ruby_1_8/sample/test.rb:1668 test failed ** error 1 ** deleting test BeOS + ruby_1_8 では成功したので、環境依存の問題の気がします。 また、bcc32 + HEAD では成功したので、何か HEAD と ruby_1_8 に違いがある のだと思います。 下のようにすると、bcc32 + ruby_1_8 でも成功します。 Index: test.rb =================================================================== RCS file: /ruby/ruby/sample/test.rb,v retrieving revision 1.83 diff -u -w -b -p -r1.83 test.rb --- test.rb 1 Dec 2003 13:16:08 -0000 1.83 +++ test.rb 15 May 2004 02:59:25 -0000 @@ -1641,21 +1641,21 @@ test_ok(i7 == nil) test_check "system" test_ok(`echo foobar` == "foobar\n") -test_ok(`./miniruby -e 'print "foobar"'` == 'foobar') +test_ok(`miniruby -e 'print "foobar"'` == 'foobar') tmp = open("script_tmp", "w") tmp.print "print $zzz\n"; tmp.close -test_ok(`./miniruby -s script_tmp -zzz` == 'true') -test_ok(`./miniruby -s script_tmp -zzz=555` == '555') +test_ok(`miniruby -s script_tmp -zzz` == 'true') +test_ok(`miniruby -s script_tmp -zzz=555` == '555') tmp = open("script_tmp", "w") tmp.print "#! /usr/local/bin/ruby -s\n"; tmp.print "print $zzz\n"; tmp.close -test_ok(`./miniruby script_tmp -zzz=678` == '678') +test_ok(`miniruby script_tmp -zzz=678` == '678') tmp = open("script_tmp", "w") tmp.print "this is a leading junk\n"; @@ -1665,8 +1665,8 @@ tmp.print "__END__\n"; tmp.print "this is a trailing junk\n"; tmp.close -test_ok(`./miniruby -x script_tmp` == 'nil') -test_ok(`./miniruby -x script_tmp -zzz=555` == '555') +test_ok(`miniruby -x script_tmp` == 'nil') +test_ok(`miniruby -x script_tmp -zzz=555` == '555') tmp = open("script_tmp", "w") for i in 1..5 @@ -1674,7 +1674,7 @@ for i in 1..5 end tmp.close -`./miniruby -i.bak -pe 'sub(/^[0-9]+$/){$&.to_i * 5}' script_tmp` +`miniruby -i.bak -pe 'sub(/^[0-9]+$/){$&.to_i * 5}' script_tmp` done = true tmp = open("script_tmp", "r") while tmp.gets