Skip to content

Commit

Permalink
[TestMiVar] Enable one of the tests for GCC.
Browse files Browse the repository at this point in the history
Summary:
The "internal" name of vars is different between clang and GCC. All this
change does is to use a regex instead of the hardcoded internal name.

Test Plan: dotest.py -C <clang|gcc> -p TestMiVar

Reviewers: ki.stfu

Reviewed By: ki.stfu

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D9128

llvm-svn: 236024
  • Loading branch information
Siva Chandra committed Apr 28, 2015
1 parent ec1de3f commit e6303cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lldb/test/tools/lldb-mi/variable/TestMiVar.py
Expand Up @@ -13,7 +13,6 @@ class MiVarTestCase(lldbmi_testcase.MiTestCaseBase):
@lldbmi_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
@skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races
@skipIfGcc #https://llvm.org/bugs/show_bug.cgi?id=23239
def test_lldbmi_eval(self):
"""Test that 'lldb-mi --interpreter' works for evaluating."""

Expand Down Expand Up @@ -119,7 +118,8 @@ def test_lldbmi_eval(self):
self.runCmd("-var-show-attributes var6")
self.expect("\^done,status=\"editable\"")
self.runCmd("-var-list-children --all-values var6")
self.expect("\^done,numchild=\"1\",children=\[child=\{name=\"var6\.\*\$11\",exp=\"\*\$11\",numchild=\"0\",type=\"const char\",thread-id=\"4294967295\",value=\"47 '/'\",has_more=\"0\"\}\]") #FIXME -var-list-children shows invalid thread-id
# FIXME: The name below is not correct. It should be "var.*argv[0]".
self.expect("\^done,numchild=\"1\",children=\[child=\{name=\"var6\.\*\$[0-9]+\",exp=\"\*\$[0-9]+\",numchild=\"0\",type=\"const char\",thread-id=\"4294967295\",value=\"47 '/'\",has_more=\"0\"\}\]") #FIXME -var-list-children shows invalid thread-id

@lldbmi_test
@expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
Expand Down

0 comments on commit e6303cc

Please sign in to comment.