[dconf] tests: fix a small lie
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] tests: fix a small lie
- Date: Mon, 25 Nov 2013 18:01:55 +0000 (UTC)
commit ab82757a0a66f55c6cf14fc1d63f61bd5fe70a45
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Nov 25 12:23:43 2013 -0500
tests: fix a small lie
N_MAX_SOURCES is 3 but we only check up to < N_MAX_SOURCES, so we only
ever checked 2.
The tests work with 3, but it takes very very long to run them, so fix
the comparison but at the same time, decrease the count.
tests/engine.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/engine.c b/tests/engine.c
index 86f98ac..8908dfe 100644
--- a/tests/engine.c
+++ b/tests/engine.c
@@ -891,7 +891,7 @@ normal_handler (const gchar *log_domain,
static void
test_read (void)
{
-#define MAX_N_SOURCES 3
+#define MAX_N_SOURCES 2
gpointer state[MAX_N_SOURCES];
gchar *profile_filename;
GError *error = NULL;
@@ -1032,7 +1032,7 @@ test_read (void)
g_setenv ("DCONF_PROFILE", profile_filename, TRUE);
- for (n = 0; n < MAX_N_SOURCES; n++)
+ for (n = 0; n <= MAX_N_SOURCES; n++)
for (i = 0; i < pow (2, n); i++)
{
gint n_possible_states = pow (7, n);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]