diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | bootstraptest/runner.rb | 10 | ||||
-rw-r--r-- | version.h | 6 |
3 files changed, 19 insertions, 5 deletions
@@ -1,3 +1,11 @@ +Fri Jul 20 09:50:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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 <nobu@ruby-lang.org> * eval_error.ci (get_backtrace): check the result more. diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index 0e9d9d8ce..0dfcae435 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 @@ -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[]; |