Enum Class TestTrapFlags

java.lang.Object
java.lang.Enum<TestTrapFlags>
org.gnome.glib.TestTrapFlags
All Implemented Interfaces:
Serializable, Comparable<TestTrapFlags>, Constable, Enumeration

@Generated("org.javagi.JavaGI") @Deprecated public enum TestTrapFlags extends Enum<TestTrapFlags> implements Enumeration
Deprecated.
GTestTrapFlags is used only with GLib.testTrapFork(long, Set), which is deprecated. Its replacement, GLib.testTrapSubprocess(String, long, Set) uses GLib.TestSubprocessFlags.

Flags to pass to GLib.testTrapFork(long, Set) to control input and output.

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

  • Enum Constant Details

    • DEFAULT

      public static final TestTrapFlags DEFAULT
      Deprecated.
      Default behaviour. Since: 2.74
    • SILENCE_STDOUT

      public static final TestTrapFlags SILENCE_STDOUT
      Deprecated.
      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().
    • SILENCE_STDERR

      public static final TestTrapFlags SILENCE_STDERR
      Deprecated.
      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().
    • INHERIT_STDIN

      public static final TestTrapFlags INHERIT_STDIN
      Deprecated.
      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.
  • Method Details

    • values

      public static TestTrapFlags[] values()
      Deprecated.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TestTrapFlags valueOf(String name)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Deprecated.
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<TestTrapFlags> of(int flags)
      Deprecated.
      Create a new EnumSet<TestTrapFlags> for the provided bitfield
      Parameters:
      flags - the TestTrapFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<TestTrapFlags> of(MemorySegment address)
      Deprecated.
      Create a new EnumSet<TestTrapFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address