network-monitor-race test: Have the subprocess inherit stdout and stderr

If initialising the monitors produces any debug output, it is good to be
able to see it when running this test.
This commit is contained in:
Iain Lane
2018-09-10 12:09:50 +01:00
parent 36c79adb2f
commit 6eb5bd8192

View File

@@ -74,7 +74,10 @@ test_network_monitor (void)
for (ii = 0; ii < MAX_RUNS; ii++)
{
g_test_trap_subprocess (NULL, 0, 0);
g_test_trap_subprocess (NULL,
0,
G_TEST_SUBPROCESS_INHERIT_STDOUT |
G_TEST_SUBPROCESS_INHERIT_STDERR);
g_test_trap_assert_passed ();
}
}