Blame SOURCES/1420.patch

3b80f8
From 0e4fd77c1e03fe6351d129f2161b0b3313f5fa3d Mon Sep 17 00:00:00 2001
3b80f8
From: Mathieu Parent <math.parent@gmail.com>
3b80f8
Date: Thu, 25 Jun 2020 09:48:04 +0200
3b80f8
Subject: [PATCH] Fix FTBFS / Increase the over-estimation for sparse files
3b80f8
3b80f8
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14418
3b80f8
Signed-off-by: Mathieu Parent <math.parent@gmail.com>
3b80f8
---
3b80f8
 tests/ldb_kv_ops_test.c | 10 ++++++++--
3b80f8
 1 file changed, 8 insertions(+), 2 deletions(-)
3b80f8
3b80f8
diff --git a/lib/ldb/tests/ldb_kv_ops_test.c b/lib/ldb/tests/ldb_kv_ops_test.c
3b80f8
index 30adebf1952..9db2212895f 100644
3b80f8
--- a/tests/ldb_kv_ops_test.c
3b80f8
+++ b/tests/ldb_kv_ops_test.c
3b80f8
@@ -1717,8 +1717,11 @@ static void test_get_size(void **state)
3b80f8
 	/*
3b80f8
 	 * The tdb implementation of get_size over estimates for sparse files
3b80f8
 	 * which is perfectly acceptable for it's intended use.
3b80f8
+	 * mipsel, ia64: 9994
3b80f8
+	 * ppc64el, powerpc, ppc64: 13369
3b80f8
+	 * sparc64: 5046
3b80f8
 	 */
3b80f8
-	assert_in_range(size, 2500, 5000);
3b80f8
+	assert_in_range(size, 2500, 15000);
3b80f8
 #endif
3b80f8
 
3b80f8
 	/*
3b80f8
@@ -1746,8 +1749,11 @@ static void test_get_size(void **state)
3b80f8
 	/*
3b80f8
 	 * The tdb implementation of get_size over estimates for sparse files
3b80f8
 	 * which is perfectly acceptable for it's intended use.
3b80f8
+	 * mipsel, ia64: 9994
3b80f8
+	 * ppc64el, powerpc, ppc64: 13369
3b80f8
+	 * sparc64: 5046
3b80f8
 	 */
3b80f8
-	assert_in_range(size, 2500, 5000);
3b80f8
+	assert_in_range(size, 2500, 15000);
3b80f8
 #endif
3b80f8
 	talloc_free(tmp_ctx);
3b80f8
 }
3b80f8
-- 
3b80f8
GitLab
3b80f8