3.16 <%GTestSubprocessFlags>

Flags: <%GTestSubprocessFlags>

Flags to pass to test-trap-subprocess to control input and output.

Note that in contrast with GLib.test_trap_fork, the default behavior of test-trap-subprocess is to not show stdout and stderr.

Members

default

Default behaviour. Since: 2.74

inherit-stdin

If this flag is given, the child process will inherit the parent’s stdin. Otherwise, the child’s stdin is redirected to /dev/null.

inherit-stdout

If this flag is given, the child process will inherit the parent’s stdout. Otherwise, the child’s stdout will not be visible, but it will be captured to allow later tests with GLib.test_trap_assert_stdout.

inherit-stderr

If this flag is given, the child process will inherit the parent’s stderr. Otherwise, the child’s stderr will not be visible, but it will be captured to allow later tests with GLib.test_trap_assert_stderr.

inherit-descriptors

If this flag is given, the child process will inherit the parent’s open file descriptors.