[evolution-ews/wip/tests] Fix initialization of replay mode
- From: Fabiano Fidêncio <ffidencio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/wip/tests] Fix initialization of replay mode
- Date: Wed, 2 Oct 2013 12:38:23 +0000 (UTC)
commit 89420b2c83c6164e5e761c5eced6c746edc55eaa
Author: Fabiano Fidêncio <fidencio redhat com>
Date: Wed Oct 2 14:37:48 2013 +0200
Fix initialization of replay mode
src/tests/common.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/tests/common.c b/src/tests/common.c
index 3b34a0a..7a65654 100644
--- a/src/tests/common.c
+++ b/src/tests/common.c
@@ -169,26 +169,26 @@ ews_test_init (int argc,
goto exit;
}
- if (write_traces) {
- if (number == 0 ||
- versions == NULL ||
- server_uris == NULL ||
- hostnames == NULL ||
- usernames == NULL ||
- passwords == NULL ||
- number != g_list_length (versions) ||
- number != g_list_length (server_uris) ||
- number != g_list_length (hostnames) ||
- number != g_list_length (usernames) ||
- number != g_list_length (passwords)) {
+ if (number == 0 ||
+ versions == NULL ||
+ server_uris == NULL ||
+ hostnames == NULL ||
+ usernames == NULL ||
+ passwords == NULL ||
+ number != g_list_length (versions) ||
+ number != g_list_length (server_uris) ||
+ number != g_list_length (hostnames) ||
+ number != g_list_length (usernames) ||
+ number != g_list_length (passwords)) {
+ if (write_traces) {
g_printerr (_("Error while parsing options\n"));
g_printerr ("%s\n", g_option_context_get_help (context, FALSE, NULL));
ret = -2;
goto exit;
+ } else {
+ prepare_fake_data ();
}
- } else {
- prepare_fake_data ();
}
g_test_init (&argc, &argv, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]