Split test cases out of TestLldbGdbServer.py and TestGdbRemoteFork.py into separate files to avoid hitting the 600s timeout limit. The inferior used by these tests (main.cpp) takes approximately 20s to compile with a Debug build of clang, causing timeouts when a single test file contains many tests. By grouping similar tests into separate files, we can prevent timeouts and improve overall test efficiency.
61 lines
2.0 KiB
Python
61 lines
2.0 KiB
Python
from lldbsuite.test.decorators import *
|
|
from lldbsuite.test.lldbtest import *
|
|
|
|
from fork_testbase import GdbRemoteForkTestBase
|
|
|
|
|
|
class TestGdbRemoteForkResume(GdbRemoteForkTestBase):
|
|
def setUp(self):
|
|
GdbRemoteForkTestBase.setUp(self)
|
|
if self.getPlatform() == "linux" and self.getArchitecture() in [
|
|
"arm",
|
|
"aarch64",
|
|
]:
|
|
self.skipTest("Unsupported for Arm/AArch64 Linux")
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_c_parent(self):
|
|
self.resume_one_test(run_order=["parent", "parent"])
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_c_child(self):
|
|
self.resume_one_test(run_order=["child", "child"])
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_c_parent_then_child(self):
|
|
self.resume_one_test(run_order=["parent", "parent", "child", "child"])
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_c_child_then_parent(self):
|
|
self.resume_one_test(run_order=["child", "child", "parent", "parent"])
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_c_interspersed(self):
|
|
self.resume_one_test(run_order=["parent", "child", "parent", "child"])
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_vCont_parent(self):
|
|
self.resume_one_test(run_order=["parent", "parent"], use_vCont=True)
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_vCont_child(self):
|
|
self.resume_one_test(run_order=["child", "child"], use_vCont=True)
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_vCont_parent_then_child(self):
|
|
self.resume_one_test(
|
|
run_order=["parent", "parent", "child", "child"], use_vCont=True
|
|
)
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_vCont_child_then_parent(self):
|
|
self.resume_one_test(
|
|
run_order=["child", "child", "parent", "parent"], use_vCont=True
|
|
)
|
|
|
|
@add_test_categories(["fork"])
|
|
def test_vCont_interspersed(self):
|
|
self.resume_one_test(
|
|
run_order=["parent", "child", "parent", "child"], use_vCont=True
|
|
)
|