summary refs log tree commit diff stats
path: root/tests/tcg/multiarch/gdbstub/follow-fork-mode-parent.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcg/multiarch/gdbstub/follow-fork-mode-parent.py')
-rw-r--r--tests/tcg/multiarch/gdbstub/follow-fork-mode-parent.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tcg/multiarch/gdbstub/follow-fork-mode-parent.py b/tests/tcg/multiarch/gdbstub/follow-fork-mode-parent.py
new file mode 100644
index 0000000000..5c2fe72208
--- /dev/null
+++ b/tests/tcg/multiarch/gdbstub/follow-fork-mode-parent.py
@@ -0,0 +1,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)