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_6@12539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
599fac85a7
commit
1d04a09d1d
4 changed files with 13 additions and 7 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]
|
||||
|
||||
Sat Jun 9 10:40:00 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* stable version 1.8.6-p36 released.
|
||||
|
|
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, $$)}
|
|
@ -69,15 +69,14 @@ EOW
|
|||
|
||||
def test_should_propagate_exit_code
|
||||
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_nil $?.termsig
|
||||
end
|
||||
|
||||
def test_should_propagate_signaled
|
||||
ruby = EnvUtil.rubybin
|
||||
out = IO.popen("#{q(ruby)} -e 'STDERR.reopen(STDOUT);" \
|
||||
"at_exit{Process.kill(:INT, $$)}'"){|f|
|
||||
out = IO.popen("#{ruby} #{File.dirname(__FILE__)}/suicide.rb"){|f|
|
||||
f.read
|
||||
}
|
||||
assert_match /Interrupt$/, out
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
#define RUBY_VERSION "1.8.6"
|
||||
#define RUBY_RELEASE_DATE "2007-06-09"
|
||||
#define RUBY_RELEASE_DATE "2007-06-15"
|
||||
#define RUBY_VERSION_CODE 186
|
||||
#define RUBY_RELEASE_CODE 20070609
|
||||
#define RUBY_PATCHLEVEL 37
|
||||
#define RUBY_RELEASE_CODE 20070615
|
||||
#define RUBY_PATCHLEVEL 38
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 8
|
||||
#define RUBY_VERSION_TEENY 6
|
||||
#define RUBY_RELEASE_YEAR 2007
|
||||
#define RUBY_RELEASE_MONTH 6
|
||||
#define RUBY_RELEASE_DAY 9
|
||||
#define RUBY_RELEASE_DAY 15
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue