Function

GLib-2.0GLibtest_trap_subprocessSince 2.38

  • Respawns the test program to run only test_path in a subprocess.

    This is equivalent to calling GLib.test_trap_subprocess_with_envp with envp set to NULL. See the documentation for that function for full details.

    Parameters

    • test_path: string

      test to run in a subprocess

    • usec_timeout: number

      timeout for the subprocess test in microseconds.

    • test_flags: TestSubprocessFlags

      flags to modify subprocess behaviour

    Returns void

    2.38