diff options
| author | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-13 21:45:50 +0000 |
|---|---|---|
| committer | Ashok Thirumurthi <ashok.thirumurthi@intel.com> | 2013-05-13 21:45:50 +0000 |
| commit | cdb5b61a2dfe54145b3ef69fe4e79f84e6286d7e (patch) | |
| tree | 4e5cbb44819cf1c3f1090209f40034ed3476fabb /lldb/test/functionalities/register/TestRegisters.py | |
| parent | b218b7f22a4cea7d65318268a7b150ed80986417 (diff) | |
| download | bcm5719-llvm-cdb5b61a2dfe54145b3ef69fe4e79f84e6286d7e.tar.gz bcm5719-llvm-cdb5b61a2dfe54145b3ef69fe4e79f84e6286d7e.zip | |
Prevent convenience registers from being included in "read register" as they are derived registers.
- Also refactors TestRegisters.py because test_convenience_registers_with_process_attach now fails with an assert.
TODO: Cross-reference the skipOnLinux decorator with a bugzilla report after root-causing this issue.
llvm-svn: 181737
Diffstat (limited to 'lldb/test/functionalities/register/TestRegisters.py')
| -rw-r--r-- | lldb/test/functionalities/register/TestRegisters.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lldb/test/functionalities/register/TestRegisters.py b/lldb/test/functionalities/register/TestRegisters.py index 95ac450ae59..153de03e3e3 100644 --- a/lldb/test/functionalities/register/TestRegisters.py +++ b/lldb/test/functionalities/register/TestRegisters.py @@ -45,7 +45,7 @@ class RegisterCommandsTestCase(TestBase): self.buildDefault() self.convenience_registers() - @expectedFailureLinux # bugzilla 14600 - Convenience registers not fully supported on Linux + @skipOnLinux # Expression evaluation fails after attach by pid def test_convenience_registers_with_process_attach(self): """Test convenience registers after a 'process attach'.""" if not self.getArchitecture() in ['x86_64']: @@ -202,10 +202,14 @@ class RegisterCommandsTestCase(TestBase): """Test convenience registers.""" self.common_setup() - # The command "register read -a" does output a derived register like eax. + # The command "register read -a" does output a derived register like eax... self.expect("register read -a", matching=True, substrs = ['eax']) + # ...however, the vanilla "register read" command should not output derived registers like eax. + self.expect("register read", matching=False, + substrs = ['eax']) + # Test reading of rax and eax. self.expect("register read rax eax", substrs = ['rax = 0x', 'eax = 0x']) @@ -231,12 +235,9 @@ class RegisterCommandsTestCase(TestBase): # Check that "register read eax" works. self.runCmd("register read eax") - # The vanilla "register read" command should not output derived registers like eax. - self.expect("register read", matching=False, - substrs = ['eax']) - self.expect("expr -- ($rax & 0xffffffff) == $eax", substrs = ['true']) + self.expect("expr -- $ax == (($ah << 8) | $al)", substrs = ['true']) |

