diff --git a/ChangeLog b/ChangeLog index 6d137eb006..8a397bc4a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Fri Jul 20 09:50:40 2007 Nobuyoshi Nakada + + * bootstraptest/runner.rb (get_result_string): check $?.coredump? + first. + + * bootstraptest/runner.rb (cleanup_coredump, check_coredump): see + stackdump file too. + Thu Jul 19 19:24:14 2007 Nobuyoshi Nakada * eval_error.ci (get_backtrace): check the result more. diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 0e9d9d8ce0..0dfcae4359 100644 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -131,7 +131,11 @@ def get_result_string(src) File.open('bootstraptest.tmp.rb', 'w') {|f| f.puts "print(begin; #{src}; end)" } - `#{@ruby} bootstraptest.tmp.rb` + begin + `#{@ruby} -W0 bootstraptest.tmp.rb` + ensure + raise CoreDumpError, "core dumped" if $? and $?.coredump? + end else eval(src).to_s end @@ -159,12 +163,14 @@ end def cleanup_coredump FileUtils.rm_f 'core' FileUtils.rm_f Dir.glob('core.*') + FileUtils.rm_f @ruby+'.stackdump' if @ruby end class CoreDumpError < StandardError; end def check_coredump - if File.file?('core') or not Dir.glob('core.*').empty? + if File.file?('core') or not Dir.glob('core.*').empty? or + (@ruby and File.exist?(@ruby+'.stackdump')) raise CoreDumpError, "core dumped" end end diff --git a/version.h b/version.h index 7ae28af2dc..1c064064f3 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-07-19" +#define RUBY_RELEASE_DATE "2007-07-20" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070719 +#define RUBY_RELEASE_CODE 20070720 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 7 -#define RUBY_RELEASE_DAY 19 +#define RUBY_RELEASE_DAY 20 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[];