aboutsummaryrefslogtreecommitdiff
path: root/tests/tcg/multiarch/gdbstub/follow-fork-mode-parent.py
blob: 5c2fe7220889791d95f69213d5e628f2b8e594ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Test GDB's follow-fork-mode parent.

SPDX-License-Identifier: GPL-2.0-or-later
"""
from test_gdbstub import main, report


def run_test():
    """Run through the tests one by one"""
    gdb.execute("set follow-fork-mode parent")
    gdb.execute("continue")
    exitcode = int(gdb.parse_and_eval("$_exitcode"))
    report(exitcode == 0, "{} == 0".format(exitcode))


main(run_test)