Fixed intermittent failures in TestGdbRemote*/TestLldbGdbServer
test/tools/lldb-server/commandline/Test* were actually executing in their parent directory. This looks fine at first because they aren't compiling an inferior executable. Unfortunately, they still call "make clean" during their cleanup, which is likely causing all kinds of havok in tests running in the parent directory Differential Revision: http://reviews.llvm.org/D9869 llvm-svn: 237932
This commit is contained in:
parent
1f160377ae
commit
65f9916370
|
|
@ -6,6 +6,8 @@ from lldbtest import *
|
|||
|
||||
class TestGdbRemoteAttach(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def attach_with_vAttach(self):
|
||||
# Start the inferior, start the debug monitor, nothing is attached yet.
|
||||
procs = self.prep_debug_monitor_and_inferior(inferior_args=["sleep:60"])
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ from lldbtest import *
|
|||
|
||||
class TestGdbRemoteAuxvSupport(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
AUXV_SUPPORT_FEATURE_NAME = "qXfer:auxv:read"
|
||||
|
||||
def has_auxv_support(self):
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ from lldbtest import *
|
|||
|
||||
class TestGdbRemoteExpeditedRegisters(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def gather_expedited_registers(self):
|
||||
# Setup the stub and set the gdb remote command stream.
|
||||
procs = self.prep_debug_monitor_and_inferior(inferior_args=["sleep:2"])
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@ import lldbgdbserverutils
|
|||
from lldbtest import *
|
||||
|
||||
class TestGdbRemoteKill(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def attach_commandline_kill_after_initial_stop(self):
|
||||
procs = self.prep_debug_monitor_and_inferior()
|
||||
self.test_sequence.add_log_lines([
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ from lldbtest import *
|
|||
|
||||
class TestGdbRemoteProcessInfo(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def qProcessInfo_returns_running_process(self):
|
||||
procs = self.prep_debug_monitor_and_inferior()
|
||||
self.add_process_info_collection_packets()
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ from lldbtest import *
|
|||
class TestGdbRemoteRegisterState(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
"""Test QSaveRegisterState/QRestoreRegisterState support."""
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def grp_register_save_restore_works(self, with_suffix):
|
||||
# Start up the process, use thread suffix, grab main thread id.
|
||||
inferior_args = ["message:main entered", "sleep:5"]
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ from lldbtest import *
|
|||
|
||||
class TestGdbRemoteSingleStep(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@debugserver_test
|
||||
@dsym_test
|
||||
def test_single_step_only_steps_one_instruction_with_s_debugserver_dsym(self):
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ from lldbtest import *
|
|||
|
||||
class TestGdbRemoteThreadsInStopReply(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
ENABLE_THREADS_IN_STOP_REPLY_ENTRIES = [
|
||||
"read packet: $QListThreadsInStopReply#21",
|
||||
"send packet: $OK#00",
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ from lldbtest import *
|
|||
|
||||
class TestGdbRemote_qThreadStopInfo(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
THREAD_COUNT = 5
|
||||
|
||||
def gather_stop_replies_via_qThreadStopInfo(self, thread_count):
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ from lldbtest import *
|
|||
|
||||
class TestGdbRemote_vCont(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def vCont_supports_mode(self, mode, inferior_args=None):
|
||||
# Setup the stub and set the gdb remote command stream.
|
||||
procs = self.prep_debug_monitor_and_inferior(inferior_args=inferior_args)
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ from lldbtest import *
|
|||
|
||||
class LldbGdbServerTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@debugserver_test
|
||||
def test_exe_starts_debugserver(self):
|
||||
self.init_debugserver_test()
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@ import time
|
|||
from lldbtest import *
|
||||
|
||||
class TestStubReverseConnect(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
_DEFAULT_TIMEOUT = 20
|
||||
|
||||
def setUp(self):
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@ import time
|
|||
from lldbtest import *
|
||||
|
||||
class TestStubSetSIDTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def get_stub_sid(self, extra_stub_args=None):
|
||||
# Launch debugserver
|
||||
if extra_stub_args:
|
||||
|
|
|
|||
|
|
@ -23,8 +23,6 @@ import logging
|
|||
|
||||
class GdbRemoteTestCaseBase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
_TIMEOUT_SECONDS = 5
|
||||
|
||||
_GDBREMOTE_KILL_PACKET = "$k#6b"
|
||||
|
|
|
|||
Loading…
Reference in New Issue