xref: /openbmc/qemu/tests/tcg/multiarch/gdbstub/follow-fork-mode-parent.py (revision e4751d340a49b117b90a411b179b8c892cf43d85)
1"""Test GDB's follow-fork-mode parent.
2
3SPDX-License-Identifier: GPL-2.0-or-later
4"""
5from test_gdbstub import main, report
6
7
8def run_test():
9    """Run through the tests one by one"""
10    gdb.execute("set follow-fork-mode parent")
11    gdb.execute("continue")
12    exitcode = int(gdb.parse_and_eval("$_exitcode"))
13    report(exitcode == 0, "{} == 0".format(exitcode))
14
15
16main(run_test)
17