xref: /llvm-project/lldb/test/API/functionalities/thread/concurrent_events/exit/TestConcurrentThreadExit.py (revision 4cc8f2a017c76af25234afc7c380550e9c93135c)
1*df4ad362SPavel Labath"""
2*df4ad362SPavel LabathThis test verifies the correct handling of the situation when a thread exits
3*df4ad362SPavel Labathwhile another thread triggers the termination (exit) of the entire process.
4*df4ad362SPavel Labath"""
5*df4ad362SPavel Labath
6*df4ad362SPavel Labathimport lldb
7*df4ad362SPavel Labathfrom lldbsuite.test.decorators import *
8*df4ad362SPavel Labathfrom lldbsuite.test.lldbtest import *
9*df4ad362SPavel Labathimport lldbsuite.test.lldbutil as lldbutil
10*df4ad362SPavel Labath
11*df4ad362SPavel Labath
12*df4ad362SPavel Labathclass ConcurrentThreadExitTestCase(TestBase):
13*df4ad362SPavel Labath    NO_DEBUG_INFO_TESTCASE = True
14*df4ad362SPavel Labath
15*df4ad362SPavel Labath    @skipIf(oslist=no_match(["linux"]))
16*df4ad362SPavel Labath    def test(self):
17*df4ad362SPavel Labath        self.build()
18*df4ad362SPavel Labath        exe = self.getBuildArtifact("a.out")
19*df4ad362SPavel Labath        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
20*df4ad362SPavel Labath        self.expect("run", substrs=["exited with status = 47"])
21