Enumeration (GI Flags)

GLib-2.0GLibTestTrapFlagsDeprecated 2.38

Flags to pass to GLib.test_trap_fork to control input and output.

Test traps are guards around forked tests. These flags determine what traps to set.

since 2.38: GLib.TestTrapFlags is used only with GLib.test_trap_fork, which is deprecated. Its replacement, GLib.test_trap_subprocess uses GLib.TestSubprocessFlags.

Index

Enumeration Members

DEFAULT: number

Default behaviour. Since: 2.74

INHERIT_STDIN: number

If this flag is given, stdin of the child process is shared with stdin of its parent process. It is redirected to /dev/null otherwise.

SILENCE_STDERR: number

Redirect stderr of the test child to /dev/null so it cannot be observed on the console during test runs. The actual output is still captured though to allow later tests with g_test_trap_assert_stderr().

SILENCE_STDOUT: number

Redirect stdout of the test child to /dev/null so it cannot be observed on the console during test runs. The actual output is still captured though to allow later tests with g_test_trap_assert_stdout().