[glib/wip/threadsafe-qdata] Fix shell tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/threadsafe-qdata] Fix shell tests
- Date: Sat, 1 Sep 2012 03:21:49 +0000 (UTC)
commit 954a538be8ffb2fe3e709cf196124e62885c8896
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 31 23:22:16 2012 -0400
Fix shell tests
glib/tests/shell.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]