From: Andreas Schneider Date: Thu, 5 Dec 2019 16:14:31 +0000 (+0100) Subject: ldb:tests: Use assert_in_range() in test_get_size() X-Git-Tag: ldb-2.1.0~408 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e464e40c977cd6592240763c7dbb9c45ff16470f;p=thirdparty%2Fsamba.git ldb:tests: Use assert_in_range() in test_get_size() Signed-off-by: Andreas Schneider Reviewed-by: Gary Lockyer --- diff --git a/lib/ldb/tests/ldb_kv_ops_test.c b/lib/ldb/tests/ldb_kv_ops_test.c index 98b5a433f1a..03711c9eeb3 100644 --- a/lib/ldb/tests/ldb_kv_ops_test.c +++ b/lib/ldb/tests/ldb_kv_ops_test.c @@ -1715,7 +1715,7 @@ static void test_get_size(void **state) * The tdb implementation of get_size over estimates for sparse files * which is perfectly acceptable for it's intended use. */ - assert_true( size > 2500); + assert_in_range(size, 2500, 5000); #endif /*