ldb:tests: Use assert_in_range() in test_get_size()
authorAndreas Schneider <asn@samba.org>
Thu, 5 Dec 2019 16:14:31 +0000 (17:14 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 6 Dec 2019 09:12:26 +0000 (09:12 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
lib/ldb/tests/ldb_kv_ops_test.c

index 98b5a433f1a1d560c060d1b0d422d6a170515c91..03711c9eeb383600072cba4e8af60e72cdb84fe5 100644 (file)
@@ -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
 
        /*