summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/thread/concurrent_events/exit/TestConcurrentThreadExit.py
blob: 276c6236124cb825a126191d14bc5074df2118f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
This test verifies the correct handling of the situation when a thread exits
while another thread triggers the termination (exit) of the entire process.
"""

import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil


class ConcurrentThreadExitTestCase(TestBase):
    NO_DEBUG_INFO_TESTCASE = True

    @skipIf(oslist=no_match(["linux"]))
    def test(self):
        self.build()
        exe = self.getBuildArtifact("a.out")
        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
        self.expect("run", substrs=["exited with status = 47"])