Enum Class TestSubprocessFlags

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

@Generated("org.javagi.JavaGI") public enum TestSubprocessFlags extends Enum<TestSubprocessFlags> implements Enumeration

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

Note that in contrast with GLib.testTrapFork(long, Set), the default behavior of GLib.testTrapSubprocess(String, long, Set) is to not show stdout and stderr.

  • Enum Constant Details

    • DEFAULT

      public static final TestSubprocessFlags DEFAULT
      Default behaviour. Since: 2.74
    • INHERIT_STDIN

      public static final TestSubprocessFlags 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.
    • INHERIT_STDOUT

      public static final TestSubprocessFlags 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 GLib.testTrapAssertStdout.
    • INHERIT_STDERR

      public static final TestSubprocessFlags 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 GLib.testTrapAssertStderr.
    • INHERIT_DESCRIPTORS

      public static final TestSubprocessFlags INHERIT_DESCRIPTORS
      If this flag is given, the child process will inherit the parent’s open file descriptors.
  • Method Details

    • values

      public static TestSubprocessFlags[] values()
      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 TestSubprocessFlags valueOf(String name)
      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()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

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

      public static Set<TestSubprocessFlags> of(MemorySegment address)
      Create a new EnumSet<TestSubprocessFlags> 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