trap_subprocess


Description:

[ Version ( since = "2.38" ) ]
public void trap_subprocess (string? test_path, uint64 usec_timeout, TestSubprocessFlags test_flags)

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

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

Parameters:

test_path

test to run in a subprocess

usec_timeout

timeout for the subprocess test in microseconds.

test_flags

flags to modify subprocess behaviour


Namespace: GLib.Test
Package: glib-2.0