[Bug 69705] [1.0] Logger: port to tp-glib 0.99.1

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 27 06:50:47 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=69705

--- Comment #11 from Simon McVittie <simon.mcvittie at collabora.co.uk> ---
g_spawn_sync() would be better. Something like this maybe:

gchar *argv[] = { "rm", "-rf", to_dir, NULL };
gchar *stdout;
gchar *stderr;
gint status;

g_spawn_sync (NULL, argv, NULL, 0, NULL, NULL, &stdout, &stderr, &status,
&error);
g_assert_no_error (error);

if (stdout != NULL)
  g_assert_cmpstr (stdout, ==, "");

if (stderr != NULL)
  g_assert_cmpstr (stderr, ==, "");

g_spawn_check_exit_status (status, &error);
g_assert_no_error (error);
g_free (stdout);
g_free (stderr);

(You could have a helper function that takes argv.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the telepathy-bugs mailing list