testTrapSubprocess

fun testTrapSubprocess(testPath: String? = null, usecTimeout: <Error class: unknown class>, testFlags: TestSubprocessFlags)

Respawns the test program to run only @test_path in a subprocess. This can be used for a test case that might not return, or that might abort.

If @test_path is null then the same test is re-run in a subprocess. You can use g_test_subprocess() to determine whether the test is in a subprocess or not.

Since

2.38

Parameters

testPath

Test to run in a subprocess

usecTimeout

Timeout for the subprocess test in micro seconds.

testFlags

Flags to modify subprocess behaviour.