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