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
14    mydir = TestBase.compute_mydir(__file__)
15    NO_DEBUG_INFO_TESTCASE = True
16
17    @skipIf(oslist=no_match(["linux"]))
18    def test(self):
19        self.build()
20        exe = self.getBuildArtifact("a.out")
21        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
22        self.expect("run", substrs=["exited with status = 47"])
23