[test] Remove unused unittest2 import
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
Test SBTarget APIs.
|
||||
"""
|
||||
|
||||
import unittest2
|
||||
import os
|
||||
import lldb
|
||||
from lldbsuite.test.decorators import *
|
||||
@@ -29,7 +28,6 @@ class TargetAPITestCase(TestBase):
|
||||
#
|
||||
# It does not segfaults now. But for dwarf, the variable value is None if
|
||||
# the inferior process does not exist yet. The radar has been updated.
|
||||
#@unittest232.skip("segmentation fault -- skipping")
|
||||
def test_find_global_variables(self):
|
||||
"""Exercise SBTarget.FindGlobalVariables() API."""
|
||||
d = {'EXE': 'b.out'}
|
||||
@@ -128,7 +126,8 @@ class TargetAPITestCase(TestBase):
|
||||
process = target.LaunchSimple(
|
||||
None, None, self.get_process_working_directory())
|
||||
abi_after_launch = target.GetABIName()
|
||||
self.assertEqual(abi_pre_launch, abi_after_launch, "ABI's match before and during run")
|
||||
self.assertEqual(abi_pre_launch, abi_after_launch,
|
||||
"ABI's match before and during run")
|
||||
|
||||
def test_read_memory(self):
|
||||
d = {'EXE': 'b.out'}
|
||||
@@ -157,7 +156,6 @@ class TargetAPITestCase(TestBase):
|
||||
self.assertSuccess(error, "Make sure memory read succeeded")
|
||||
self.assertEqual(len(content), 1)
|
||||
|
||||
|
||||
@skipIfWindows # stdio manipulation unsupported on Windows
|
||||
@skipIfRemote # stdio manipulation unsupported on remote iOS devices<rdar://problem/54581135>
|
||||
@skipIf(oslist=["linux"], archs=["arm", "aarch64"])
|
||||
@@ -371,7 +369,7 @@ class TargetAPITestCase(TestBase):
|
||||
|
||||
if lldb.remote_platform:
|
||||
stdout_path = lldbutil.append_to_process_working_directory(self,
|
||||
"lldb-stdout-redirect.txt")
|
||||
"lldb-stdout-redirect.txt")
|
||||
else:
|
||||
stdout_path = local_path
|
||||
error = lldb.SBError()
|
||||
@@ -492,16 +490,17 @@ class TargetAPITestCase(TestBase):
|
||||
""" Test the other two target create methods using LLDB_ARCH_DEFAULT. """
|
||||
self.build()
|
||||
exe = self.getBuildArtifact("a.out")
|
||||
target = self.dbg.CreateTargetWithFileAndArch(exe, lldb.LLDB_ARCH_DEFAULT)
|
||||
target = self.dbg.CreateTargetWithFileAndArch(
|
||||
exe, lldb.LLDB_ARCH_DEFAULT)
|
||||
self.assertTrue(target.IsValid(), "Default arch made a valid target.")
|
||||
# This should also work with the target's triple:
|
||||
target2 = self.dbg.CreateTargetWithFileAndArch(exe, target.GetTriple())
|
||||
self.assertTrue(target2.IsValid(), "Round trip with triple works")
|
||||
# And this triple should work for the FileAndTriple API:
|
||||
target3 = self.dbg.CreateTargetWithFileAndTargetTriple(exe, target.GetTriple())
|
||||
target3 = self.dbg.CreateTargetWithFileAndTargetTriple(
|
||||
exe, target.GetTriple())
|
||||
self.assertTrue(target3.IsValid())
|
||||
|
||||
|
||||
@skipIfWindows
|
||||
def test_is_loaded(self):
|
||||
"""Exercise SBTarget.IsLoaded(SBModule&) API."""
|
||||
|
||||
Reference in New Issue
Block a user