From cecae97def2026cba3291d03937d520856c5346c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@gmail.com>
Date: Tue, 6 Dec 2016 10:46:30 -0200
Subject: [PATCH] Fix tests against ruby 2.4-dev
---
test/commands/thread_test.rb | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/test/commands/thread_test.rb b/test/commands/thread_test.rb
index 4db9f34..650d4be 100644
--- a/test/commands/thread_test.rb
+++ b/test/commands/thread_test.rb
@@ -79,9 +79,11 @@ def test_thread_list_shows_all_available_threads
enter 'cont 24', 'thread list', 'lock << 0'
debug_code(program)
- check_output_includes(/(\+)?\d+ #<Thread:0x\h+(@.+:\d+)? (sleep|run)>/,
- /(\+)?\d+ #<Thread:0x\h+(@.+:\d+)? (sleep|run)>/,
- /(\+)?\d+ #<Thread:0x\h+(@.+:\d+)? (sleep|run)>/)
+ check_output_includes(
+ /(\+)?\d+ #<Thread:0x\h+(@.+:\d+)? (sleep|sleep_forever|run)>/,
+ /(\+)?\d+ #<Thread:0x\h+(@.+:\d+)? (sleep|sleep_forever|run)>/,
+ /(\+)?\d+ #<Thread:0x\h+(@.+:\d+)? (sleep|sleep_forever|run)>/
+ )
end
def test_thread_stop_marks_thread_as_suspended