Interface TestTrapFlags


public interface TestTrapFlags
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default behaviour.
    static final int
    If this flag is given, stdin of the
    child process is shared with stdin of its parent process.
    static final int
    Redirect stderr of the test child to
    `/dev/null` so it cannot be observed on the console during test
    runs.
    static final int
    Redirect stdout of the test child to
    `/dev/null` so it cannot be observed on the console during test
    runs.
  • Field Details

    • DEFAULT

      static final int DEFAULT
      Default behaviour. Since: 2.74
      See Also:
    • SILENCE_STDOUT

      static final int SILENCE_STDOUT
      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().
      See Also:
    • SILENCE_STDERR

      static final int SILENCE_STDERR
      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().
      See Also:
    • INHERIT_STDIN

      static final int INHERIT_STDIN
      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.
      See Also: