mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
get rid of invoking shell. [ruby-dev:30942] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
18342ff8e0
commit
ab4a126782
4 changed files with 12 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Jun 10 13:47:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
|
||||||
|
get rid of invoking shell. [ruby-dev:30942]
|
||||||
|
|
||||||
Thu Jun 7 19:02:48 2007 Tanaka Akira <akr@fsij.org>
|
Thu Jun 7 19:02:48 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/pp.rb: call original "method" method instead of redefined one.
|
* lib/pp.rb: call original "method" method instead of redefined one.
|
||||||
|
|
2
test/ruby/suicide.rb
Normal file
2
test/ruby/suicide.rb
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
STDERR.reopen(STDOUT)
|
||||||
|
at_exit{Process.kill(:INT, $$)}
|
|
@ -68,15 +68,14 @@ EOW
|
||||||
|
|
||||||
def test_should_propagate_exit_code
|
def test_should_propagate_exit_code
|
||||||
ruby = EnvUtil.rubybin
|
ruby = EnvUtil.rubybin
|
||||||
assert_equal false, system("#{q(ruby)} -e 'at_exit{exit 2}'")
|
assert_equal false, system(ruby, '-e', 'at_exit{exit 2}')
|
||||||
assert_equal 2, $?.exitstatus
|
assert_equal 2, $?.exitstatus
|
||||||
assert_nil $?.termsig
|
assert_nil $?.termsig
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_propagate_signaled
|
def test_should_propagate_signaled
|
||||||
ruby = EnvUtil.rubybin
|
ruby = EnvUtil.rubybin
|
||||||
out = IO.popen("#{q(ruby)} -e 'STDERR.reopen(STDOUT);" \
|
out = IO.popen("#{ruby} #{File.dirname(__FILE__)}/suicide.rb"){|f|
|
||||||
"at_exit{Process.kill(:INT, $$)}'"){|f|
|
|
||||||
f.read
|
f.read
|
||||||
}
|
}
|
||||||
assert_match /Interrupt$/, out
|
assert_match /Interrupt$/, out
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#define RUBY_VERSION "1.8.6"
|
#define RUBY_VERSION "1.8.6"
|
||||||
#define RUBY_RELEASE_DATE "2007-06-04"
|
#define RUBY_RELEASE_DATE "2007-06-10"
|
||||||
#define RUBY_VERSION_CODE 186
|
#define RUBY_VERSION_CODE 186
|
||||||
#define RUBY_RELEASE_CODE 20070604
|
#define RUBY_RELEASE_CODE 20070610
|
||||||
#define RUBY_PATCHLEVEL 5000
|
#define RUBY_PATCHLEVEL 5000
|
||||||
|
|
||||||
#define RUBY_VERSION_MAJOR 1
|
#define RUBY_VERSION_MAJOR 1
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
#define RUBY_VERSION_TEENY 6
|
#define RUBY_VERSION_TEENY 6
|
||||||
#define RUBY_RELEASE_YEAR 2007
|
#define RUBY_RELEASE_YEAR 2007
|
||||||
#define RUBY_RELEASE_MONTH 6
|
#define RUBY_RELEASE_MONTH 6
|
||||||
#define RUBY_RELEASE_DAY 4
|
#define RUBY_RELEASE_DAY 10
|
||||||
|
|
||||||
#ifdef RUBY_EXTERN
|
#ifdef RUBY_EXTERN
|
||||||
RUBY_EXTERN const char ruby_version[];
|
RUBY_EXTERN const char ruby_version[];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue