summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 13:08:02 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 13:08:02 +0000
commit2e315baf48b7c06d487cf6082e82377e93442bc7 (patch)
tree2aa7dce3d3326c0b2f4ef53962e1ab958449588a /test
parent13ea7a876159ef67d57a90e2020e28cb6082e580 (diff)
The main Thread should have report_on_exception=true for consistency
* Adapt test and add specs. * See [Feature #14143] [ruby-core:84227] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_thread.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 32a155ef18..386a5cb89b 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -382,8 +382,8 @@ class TestThread < Test::Unit::TestCase
assert_equal(true, Thread.report_on_exception,
"global flag is true by default")
- assert_equal(false, Thread.current.report_on_exception,
- "the main thread has report_on_exception=false")
+ assert_equal(true, Thread.current.report_on_exception,
+ "the main thread has report_on_exception=true")
Thread.report_on_exception = true
Thread.current.report_on_exception = false