xref: /llvm-project/lldb/test/API/functionalities/fork/resumes-child/TestForkResumesChild.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1af9e1fa1SPavel Labath"""
2af9e1fa1SPavel LabathMake sure that the fork child keeps running.
3af9e1fa1SPavel Labath"""
4af9e1fa1SPavel Labath
5af9e1fa1SPavel Labath
6af9e1fa1SPavel Labathimport lldb
7af9e1fa1SPavel Labathimport lldbsuite.test.lldbutil as lldbutil
8af9e1fa1SPavel Labathfrom lldbsuite.test.lldbtest import *
9af9e1fa1SPavel Labathfrom lldbsuite.test.decorators import *
10af9e1fa1SPavel Labath
11af9e1fa1SPavel Labath
12af9e1fa1SPavel Labathclass TestForkResumesChild(TestBase):
13af9e1fa1SPavel Labath    NO_DEBUG_INFO_TESTCASE = True
14af9e1fa1SPavel Labath
15af9e1fa1SPavel Labath    @skipIfWindows
16af9e1fa1SPavel Labath    def test_step_over_fork(self):
17af9e1fa1SPavel Labath        self.build()
18*2238dcc3SJonas Devlieghere        lldbutil.run_to_source_breakpoint(
19*2238dcc3SJonas Devlieghere            self, "// break here", lldb.SBFileSpec("main.cpp")
20*2238dcc3SJonas Devlieghere        )
21af9e1fa1SPavel Labath        self.runCmd("next")
22af9e1fa1SPavel Labath        self.expect("continue", substrs=["exited with status = 0"])
23