Value | Meaning |
---|---|
Default0 | Default behaviour. Since: 2.74 |
SilenceStdout128 | 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(). |
SilenceStderr256 | 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(). |
InheritStdin512 | 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. |
Deprecated: #GTestTrapFlags is used only with glib.global.testTrapFork, which is deprecated. glib.global.testTrapSubprocess uses #GTestSubprocessFlags.
Test traps are guards around forked tests. These flags determine what traps to set.