[glib] Test g_subprocess_launcher_spawn



commit 7d82d6dc5b7de75672d4875b2a897b9a29836f32
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Nov 28 01:36:29 2013 -0500

    Test g_subprocess_launcher_spawn
    
    The spawnv variant of this function already had a test, but
    spawn was not tested.

 gio/tests/gsubprocess.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/gsubprocess.c b/gio/tests/gsubprocess.c
index 3dcabc6..73fa715 100644
--- a/gio/tests/gsubprocess.c
+++ b/gio/tests/gsubprocess.c
@@ -779,7 +779,7 @@ test_env (void)
 
   g_assert_null (g_subprocess_launcher_getenv (launcher, "FOUR"));
    
-  proc = g_subprocess_launcher_spawnv (launcher, (const gchar * const *) args->pdata, error);
+  proc = g_subprocess_launcher_spawn (launcher, error, args->pdata[0], "env", NULL);
   g_ptr_array_free (args, TRUE);
   g_assert_no_error (local_error);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]