summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-20 00:50:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-07-20 00:50:42 +0000
commit4beb1193936ff7ea65fbe81d4a8b096cc3067c96 (patch)
tree647161bc4800df45fcd28ad85d4fb6c843e77e5c
parent863e7e95f2a811530df1f5bc8400d098c35cce45 (diff)
* bootstraptest/runner.rb (get_result_string): check $?.coredump?
first. * bootstraptest/runner.rb (cleanup_coredump, check_coredump): see stackdump file too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog8
-rw-r--r--bootstraptest/runner.rb10
-rw-r--r--version.h6
3 files changed, 19 insertions, 5 deletions
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 <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 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[];