[evolution-ews/wip/tests] tests: Fix G_OPTION_ARG_NONE options
- From: Fabiano Fidêncio <ffidencio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/wip/tests] tests: Fix G_OPTION_ARG_NONE options
- Date: Wed, 2 Oct 2013 12:38:08 +0000 (UTC)
commit 4356f44443e1cf56ec3cf64e41234101f5945983
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue Oct 1 21:53:01 2013 +0100
tests: Fix G_OPTION_ARG_NONE options
They require a boolean arg_data.
src/tests/common.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/tests/common.c b/src/tests/common.c
index b1ae662..3fcc291 100644
--- a/src/tests/common.c
+++ b/src/tests/common.c
@@ -123,13 +123,16 @@ handle_config (const gchar *option_name G_GNUC_UNUSED,
return ret;
}
+static gboolean option_verbose = FALSE;
+static gboolean option_quiet = FALSE;
+
static GOptionEntry entries[] =
{
{ "config", 'c', 0, G_OPTION_ARG_CALLBACK, handle_config,
"Set configuration parameters", "key=value" },
- { "verbose", 'v', 0, G_OPTION_ARG_NONE, NULL,
+ { "verbose", 'v', 0, G_OPTION_ARG_NONE, &option_verbose,
"Run tests verbosely", NULL, },
- { "quiet", 'q', 0, G_OPTION_ARG_NONE, NULL,
+ { "quiet", 'q', 0, G_OPTION_ARG_NONE, &option_quiet,
"Run tests quietly", NULL, },
{ "trace-dir", 't', 0, G_OPTION_ARG_FILENAME, (void *)&trace_dir,
"Read/Write traces files in the specified directory", NULL, },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]