[glib/wip/netlink-monitor-cleanups: 5/5] network-monitor-race test: Have the subprocess inherit stdout and stderr
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/netlink-monitor-cleanups: 5/5] network-monitor-race test: Have the subprocess inherit stdout and stderr
- Date: Wed, 12 Sep 2018 11:55:14 +0000 (UTC)
commit 3524817dac5f4f9d03ab98c078bdd160d7bb443f
Author: Iain Lane <iainl gnome org>
Date: Mon Sep 10 12:09:50 2018 +0100
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.
gio/tests/network-monitor-race.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gio/tests/network-monitor-race.c b/gio/tests/network-monitor-race.c
index cadd62cee..9c6866e6a 100644
--- a/gio/tests/network-monitor-race.c
+++ b/gio/tests/network-monitor-race.c
@@ -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 ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]