Fix FTBFS / Increase the over-estimation for sparse files
authorMathieu Parent <math.parent@gmail.com>
Thu, 25 Jun 2020 07:48:04 +0000 (09:48 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 25 Aug 2020 04:23:19 +0000 (04:23 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14418
Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 25 04:23:19 UTC 2020 on sn-devel-184

lib/ldb/tests/ldb_kv_ops_test.c

index 30adebf19523320600320156c883f1d0fb7b6107..9db2212895fb523b40878af4ed6158160760e4fd 100644 (file)
@@ -1717,8 +1717,11 @@ 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.
+        * mipsel, ia64: 9994
+        * ppc64el, powerpc, ppc64: 13369
+        * sparc64: 5046
         */
-       assert_in_range(size, 2500, 5000);
+       assert_in_range(size, 2500, 15000);
 #endif
 
        /*
@@ -1746,8 +1749,11 @@ 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.
+        * mipsel, ia64: 9994
+        * ppc64el, powerpc, ppc64: 13369
+        * sparc64: 5046
         */
-       assert_in_range(size, 2500, 5000);
+       assert_in_range(size, 2500, 15000);
 #endif
        talloc_free(tmp_ctx);
 }