xref: /llvm-project/lldb/test/API/functionalities/thread/concurrent_events/exit/TestConcurrentThreadExit.py (revision 4cc8f2a017c76af25234afc7c380550e9c93135c)
1"""
2This test verifies the correct handling of the situation when a thread exits
3while another thread triggers the termination (exit) of the entire process.
4"""
5
6import lldb
7from lldbsuite.test.decorators import *
8from lldbsuite.test.lldbtest import *
9import lldbsuite.test.lldbutil as lldbutil
10
11
12class ConcurrentThreadExitTestCase(TestBase):
13    NO_DEBUG_INFO_TESTCASE = True
14
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