[glib/wip/netlink-monitor-cleanups: 4/4] network-monitor-race test: Have the subprocess inherit stdout and stderr



commit dc091ffa7ae49b44f45543a918ceeb0558baec93
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]