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

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