### Enumeration

# GLib TestSubprocessFlags

since: 2.0

#### Declaration

    flags GLib.TestSubprocessFlags

#### Description

Flags to pass to `g_test_trap_subprocess()` to control input and output.

Note that in contrast with g_test_trap_fork(), the default is to not show stdout and stderr.

Available since: 2.0

#### Members

`G_TEST_SUBPROCESS_DEFAULT`

  Default behaviour. Since: 2.74

  - Value: `0`
  - Nickname: `None`
  - Available since: 2.0
`G_TEST_SUBPROCESS_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`.

  - Value: `1`
  - Nickname: `None`
  - Available since: 2.0
`G_TEST_SUBPROCESS_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 g_test_trap_assert_stdout().

  - Value: `2`
  - Nickname: `None`
  - Available since: 2.0
`G_TEST_SUBPROCESS_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 g_test_trap_assert_stderr().

  - Value: `4`
  - Nickname: `None`
  - Available since: 2.0