Blame SOURCES/ldb-2.3.0-fix-tests-on-aarch64.patch

897909
From e90817629f1f7049cc0fe48f1003f5fb1103acc3 Mon Sep 17 00:00:00 2001
897909
From: Gary Lockyer <gary@catalyst.net.nz>
897909
Date: Thu, 22 Apr 2021 10:03:53 +0200
897909
Subject: [PATCH 1/2] lib:ldb: Use a 1MiB lmdb so the test also passes on
897909
 aarch64 CentOS stream
897909
897909
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
897909
Reviewed-by: Andreas Schneider <asn@samba.org>
897909
---
897909
 lib/ldb/tests/ldb_lmdb_free_list_test.c | 6 +++---
897909
 1 file changed, 3 insertions(+), 3 deletions(-)
897909
897909
diff --git a/lib/ldb/tests/ldb_lmdb_free_list_test.c b/lib/ldb/tests/ldb_lmdb_free_list_test.c
897909
index 9b295460730..c87620e7a87 100644
897909
--- a/tests/ldb_lmdb_free_list_test.c
897909
+++ b/tests/ldb_lmdb_free_list_test.c
897909
@@ -77,7 +77,7 @@
897909
 #endif /* TEST_BE */
897909
 
897909
 const int RECORD_SIZE = 6144;
897909
-const int ITERATIONS = 3;
897909
+const int ITERATIONS = 192;
897909
 
897909
 struct test_ctx {
897909
 	struct tevent_context *ev;
897909
@@ -155,9 +155,9 @@ static int setup(void **state)
897909
 				 "@IDX_DN_GUID: GUID\n"
897909
 				 "\n";
897909
 	/*
897909
-	 * Use a 64KiB DB for this test
897909
+	 * Use a 1MiB DB for this test
897909
 	 */
897909
-	const char *options[] = {"lmdb_env_size:65536", NULL};
897909
+	const char *options[] = {"lmdb_env_size:1048576", NULL};
897909
 
897909
 	noconn_setup((void **)&test_ctx);
897909
 
897909
-- 
897909
2.31.1