21 lines · python
1"""2This test verifies the correct handling of the situation when a thread exits3while another thread triggers the termination (exit) of the entire process.4"""5 6import lldb7from lldbsuite.test.decorators import *8from lldbsuite.test.lldbtest import *9import lldbsuite.test.lldbutil as lldbutil10 11 12class ConcurrentThreadExitTestCase(TestBase):13 NO_DEBUG_INFO_TESTCASE = True14 15 @skipIf(oslist=no_match(["linux"]))16 def test(self):17 self.build()18 exe = self.getBuildArtifact("a.out")19 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)20 self.expect("run", substrs=["exited with status = 47"])21