From: Matthias Clasen Date: Sat, 1 Sep 2012 03:22:16 +0000 (-0400) Subject: Fix shell tests X-Git-Tag: 2.33.12~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c270b833a631ef5469d0dce787244ecf56386c5d;p=platform%2Fupstream%2Fglib.git Fix shell tests --- diff --git a/glib/tests/shell.c b/glib/tests/shell.c index 08fd3fe..41ecb9d 100644 --- a/glib/tests/shell.c +++ b/glib/tests/shell.c @@ -60,7 +60,7 @@ static CmdlineTest cmdline_tests[] = { "foo \"c:\\\\\"", 2, { "foo", "c:\\", NULL }, -1 }, { "foo # bla bla bla\n bar", 2, { "foo", "bar", NULL }, -1 }, { "foo a#b", 2, { "foo", "a#b", NULL }, -1 }, - { "#foo", 0, { NULL }, -1 }, + { "#foo", 0, { NULL }, G_SHELL_ERROR_EMPTY_STRING }, { "foo bar \\", 0, { NULL }, G_SHELL_ERROR_BAD_QUOTING }, { "foo 'bar baz", 0, { NULL }, G_SHELL_ERROR_BAD_QUOTING }, { "foo '\"bar\" baz", 0, { NULL }, G_SHELL_ERROR_BAD_QUOTING }, @@ -94,6 +94,7 @@ do_cmdline_test (gconstpointer d) gboolean res; err = NULL; +g_print ("test cmdline: %s\n", test->cmdline); res = g_shell_parse_argv (test->cmdline, &argc, &argv, &err); if (test->error_code == -1) {