[Lldb-commits] [lldb] r236024 - [TestMiVar] Enable one of the tests for GCC.
Siva Chandra
sivachandra at google.com
Tue Apr 28 12:21:57 PDT 2015
Author: sivachandra
Date: Tue Apr 28 14:21:57 2015
New Revision: 236024
URL: http://llvm.org/viewvc/llvm-project?rev=236024&view=rev
Log:
[TestMiVar] Enable one of the tests for GCC.
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
Modified:
lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py
Modified: lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py?rev=236024&r1=236023&r2=236024&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py (original)
+++ lldb/trunk/test/tools/lldb-mi/variable/TestMiVar.py Tue Apr 28 14:21:57 2015
@@ -13,7 +13,6 @@ class MiVarTestCase(lldbmi_testcase.MiTe
@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."""
@@ -119,7 +118,8 @@ class MiVarTestCase(lldbmi_testcase.MiTe
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")
More information about the lldb-commits
mailing list