summaryrefslogtreecommitdiff
path: root/misc/test_lldb_cruby.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-02 21:13:22 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-04-02 21:13:22 +0000
commitad67845ba82023474ed2c914e7b38859a9cd488d (patch)
tree90f01f2174b2d3975c20795e6151ed9e2188620a /misc/test_lldb_cruby.rb
parent714c2b0a93a3ad2206dc93535f42987083b16ca9 (diff)
Fix typo in lldb script
Also fix tests git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'misc/test_lldb_cruby.rb')
-rw-r--r--misc/test_lldb_cruby.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/test_lldb_cruby.rb b/misc/test_lldb_cruby.rb
index 4d1cc499f5..bd58619ac2 100644
--- a/misc/test_lldb_cruby.rb
+++ b/misc/test_lldb_cruby.rb
@@ -9,7 +9,7 @@ class TestLLDBInit < Test::Unit::TestCase
tf.puts <<eom
target create ./miniruby
command script import -r misc/lldb_cruby.py
-b rb_p
+b rb_inspect
run -e'p #{expr}'
rp obj
eom
@@ -24,8 +24,12 @@ eom
assert_rp 'Object.new', 'T_OBJECT'
end
+ def test_rp_regex
+ assert_rp '/foo/', '[(]Regex'
+ end
+
def test_rp_symbol
- assert_rp ':abcde', /immediate\(\h+\)/
+ assert_rp ':abcde', /T_SYMBOL: \(\h+\)/
end
def test_rp_string