mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 22:23:39 +02:00
Merge branch 'gsubprocess-communicate-utf8-tests' into 'master'
Add UTF-8 communication tests for GSubprocess See merge request GNOME/glib!381
This commit is contained in:
@@ -200,13 +200,18 @@ main (int argc, char **argv)
|
||||
GOptionContext *context;
|
||||
GError *error = NULL;
|
||||
const char *mode;
|
||||
gboolean ret;
|
||||
|
||||
context = g_option_context_new ("MODE - Test GSubprocess stuff");
|
||||
g_option_context_add_main_entries (context, options, NULL);
|
||||
if (!g_option_context_parse (context, &argc, &argv, &error))
|
||||
ret = g_option_context_parse (context, &argc, &argv, &error);
|
||||
g_option_context_free (context);
|
||||
|
||||
if (!ret)
|
||||
{
|
||||
g_option_context_free (context);
|
||||
g_printerr ("%s: %s\n", argv[0], error->message);
|
||||
g_error_free (error);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user