1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_optimization.rb (test_tailcall_interrupted_by_sigint):

don't use sleep to run faster.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2016-11-06 01:06:45 +00:00
parent 4b7fd61a05
commit 0de0e14dde
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Sun Nov 6 10:03:00 2016 Shugo Maeda <shugo@ruby-lang.org>
* test/ruby/test_optimization.rb (test_tailcall_interrupted_by_sigint):
don't use sleep to run faster.
Sun Nov 6 09:58:47 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (rb_exec_fillarg): honor the given path environment

View file

@ -328,18 +328,21 @@ eval <<EOF
def foo
foo
end
puts("start")
STDOUT.flush
foo
EOF
EOS
err = EnvUtil.invoke_ruby([], "", true, true, {}) {
status, err = EnvUtil.invoke_ruby([], "", true, true, {}) {
|in_p, out_p, err_p, pid|
in_p.write(script)
in_p.close
sleep(1)
out_p.gets
Process.kill(:SIGINT, pid)
Process.wait(pid)
err_p.read
*, stat = Process.wait2(pid)
[stat, err_p.read]
}
assert_equal(Signal.list["INT"], status.termsig)
assert_match(/Interrupt/, err, bug)
end