From ab82757a0a66f55c6cf14fc1d63f61bd5fe70a45 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Mon, 25 Nov 2013 12:23:43 -0500 Subject: 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 file 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); -- cgit v1.2.1