diff options
author | David Kahles <david.kahles96@gmail.com> | 2016-01-22 18:00:34 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-02-09 10:35:25 +0100 |
commit | 5526761aeaae9d7e6f620f651d4a2d78f8e81fb6 (patch) | |
tree | 92e67dac8755be8c77e2e47c2078e0be38779d64 | |
parent | 7a6b25ad2166ee0a048020fdd1d483eb29787c84 (diff) | |
download | csync-5526761aeaae9d7e6f620f651d4a2d78f8e81fb6.tar.gz csync-5526761aeaae9d7e6f620f651d4a2d78f8e81fb6.tar.xz csync-5526761aeaae9d7e6f620f651d4a2d78f8e81fb6.zip |
Check whether max time difference and recursion depth get set
Set the values to a non-standard value in the test before loading the
config file, and check whether they got set correctly.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | tests/csync_tests/check_csync_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/csync_tests/check_csync_config.c b/tests/csync_tests/check_csync_config.c index a7078ba..0bce7ae 100644 --- a/tests/csync_tests/check_csync_config.c +++ b/tests/csync_tests/check_csync_config.c @@ -58,6 +58,8 @@ static void check_csync_config_load(void **state) /* Enable it, loading the default config should disable it */ rc = csync_enable_conflictcopys(csync); assert_int_equal(rc, 0); + csync->options.max_time_difference = 5; + csync->options.max_depth = 30; rc = csync_config_parse_file(csync, TESTCONF); assert_int_equal(rc, 0); |