diff options
author | Ryan Lortie <desrt@desrt.ca> | 2013-11-25 12:23:43 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2013-11-25 12:23:43 -0500 |
commit | ab82757a0a66f55c6cf14fc1d63f61bd5fe70a45 (patch) | |
tree | 5f20e1e156d07e95b7e9a3d7ce25bb39ad98259f | |
parent | e822b34577f2f4347a876653434a733c63cb0a55 (diff) | |
download | dconf-ab82757a0a66f55c6cf14fc1d63f61bd5fe70a45.tar.gz |
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.
-rw-r--r-- | 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); |