diff options
author | Pavel Labath <pavel@labath.sk> | 2019-10-15 07:20:01 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-10-15 07:20:01 +0000 |
commit | 8d499957953e2ed865ba68dbe86ee3ddb63e0f47 (patch) | |
tree | eca94bd5a3a6d576401bcb4330839da46c05f1e4 /lldb/packages/Python/lldbsuite | |
parent | b2661a2d153f936e6f3f80d3634428f322926535 (diff) | |
download | bcm5719-llvm-8d499957953e2ed865ba68dbe86ee3ddb63e0f47.tar.gz bcm5719-llvm-8d499957953e2ed865ba68dbe86ee3ddb63e0f47.zip |
Fix TestDisassemble_VST1_64
- use a full triple instead of just the architecture (makes the test
pass on non-apple hosts)
- skip the test if the ARM llvm target is not built
llvm-svn: 374863
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py b/lldb/packages/Python/lldbsuite/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py index 1b627c04ff1..e4d085de7c2 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py +++ b/lldb/packages/Python/lldbsuite/test/python_api/disassemble-raw-data/TestDisassemble_VST1_64.py @@ -19,11 +19,11 @@ class Disassemble_VST1_64(TestBase): @add_test_categories(['pyapi']) @no_debug_info_test - @skipIf(triple='^mips') + @skipIfLLVMTargetMissing("ARM") def test_disassemble_invalid_vst_1_64_raw_data(self): """Test disassembling invalid vst1.64 raw bytes with the API.""" # Create a target from the debugger. - target = self.dbg.CreateTargetWithFileAndTargetTriple("", "thumbv7") + target = self.dbg.CreateTargetWithFileAndTargetTriple("", "thumbv7-apple-macosx") self.assertTrue(target, VALID_TARGET) raw_bytes = bytearray([0xf0, 0xb5, 0x03, 0xaf, @@ -45,6 +45,11 @@ class Disassemble_VST1_64(TestBase): insts = target.GetInstructions(lldb.SBAddress(), raw_bytes) + if self.TraceOn(): + print() + for i in insts: + print("Disassembled %s" % str(i)) + if sys.version_info.major >= 3: sio = StringIO() insts.Print(sio) @@ -59,11 +64,6 @@ class Disassemble_VST1_64(TestBase): inst.Print(sio) self.assertEqual(asm, sio.getvalue().strip()) - if self.TraceOn(): - print() - for i in insts: - print("Disassembled%s" % str(i)) - raw_bytes = bytearray([0x04, 0xf9, 0xed, 0x82]) insts = target.GetInstructions(lldb.SBAddress(), raw_bytes) |