Files
clang-p2996/lldb/test/API/functionalities/thread/concurrent_events/exit/TestConcurrentThreadExit.py
Dave Lee 4cc8f2a017 [lldb][tests] Automatically call compute_mydir (NFC)
Eliminate boilerplate of having each test manually assign to `mydir` by calling
`compute_mydir` in lldbtest.py.

Differential Revision: https://reviews.llvm.org/D128077
2022-06-17 14:34:49 -07:00

21 lines
627 B
Python

"""
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"])