summaryrefslogtreecommitdiff
path: root/test/thread
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-09 19:52:10 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-09 19:52:10 +0000
commit6ad7c53ba9fb688ea1070a2319a64f0cc32c08e8 (patch)
treea1c1b5cc2b26470a6c219bf7e65352b4ba72560b /test/thread
parent257eacee2c85935feef2f9a6fcef83c07e2b205e (diff)
test/thread: relax internal implementation check in error message
Queue, SizedQueue, and ConditionVariable internal implementation should not be tied to using arrays. Implementation details can change and I am working on a change to remove the dependency on arrays (as others may attempt, too) by using ccan/list for the waiter list. * test/thread/test_cv.rb (test_dump): remove check for Array * test/thread/test_queue.rb (test_dump): ditto [ruby-core:81001] [Misc #13541] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/thread')
-rw-r--r--test/thread/test_cv.rb2
-rw-r--r--test/thread/test_queue.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/thread/test_cv.rb b/test/thread/test_cv.rb
index 6779cb37ef9..7a34d7462b0 100644
--- a/test/thread/test_cv.rb
+++ b/test/thread/test_cv.rb
@@ -218,7 +218,7 @@ INPUT
end
condvar = DumpableCV.new
- assert_raise_with_message(TypeError, /internal Array/, bug9674) do
+ assert_raise(TypeError, bug9674) do
Marshal.dump(condvar)
end
end
diff --git a/test/thread/test_queue.rb b/test/thread/test_queue.rb
index 5ca6972ecec..300ffd70361 100644
--- a/test/thread/test_queue.rb
+++ b/test/thread/test_queue.rb
@@ -278,7 +278,7 @@ class TestQueue < Test::Unit::TestCase
end
q = DumpableQueue.new
- assert_raise_with_message(TypeError, /internal Array/, bug9674) do
+ assert_raise(TypeError, bug9674) do
Marshal.dump(q)
end
end