diff options
author | David Seifert <soap@gentoo.org> | 2022-02-02 11:22:54 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2022-02-02 11:22:54 +0100 |
commit | a8a8866604ccdec991cdb868790a1b49f33c4f35 (patch) | |
tree | e8440717f538c946944e7bc22065039aca21bad1 /sys-libs/ldb | |
parent | dev-python/semantic_version: Bump to 2.8.6_pre20211108 snap (diff) | |
download | gentoo-a8a8866604ccdec991cdb868790a1b49f33c4f35.tar.gz gentoo-a8a8866604ccdec991cdb868790a1b49f33c4f35.tar.bz2 gentoo-a8a8866604ccdec991cdb868790a1b49f33c4f35.zip |
sys-libs/ldb: fix patch
Bug: https://bugs.gentoo.org/832257
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sys-libs/ldb')
-rw-r--r-- | sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch b/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch index 044f2e29609f..70f34c5f1a58 100644 --- a/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch +++ b/sys-libs/ldb/files/ldb-2.4.2-skip-32bit-time_t-tests.patch @@ -5,29 +5,27 @@ Subject: [PATCH] Skip failing tests (on 32-bit architectures) See https://bugzilla.samba.org/show_bug.cgi?id=14558#c17 --- - tests/python/api.py | 6 ++++++ - 1 file changed, 6 insertions(+) + tests/python/api.py | 4 ++++++ + 1 file changed, 4 insertions(+) diff --git a/tests/python/api.py b/tests/python/api.py index 8d154aa..e1de40c 100755 --- a/tests/python/api.py +++ b/tests/python/api.py -@@ -44,6 +44,9 @@ class NoContextTests(TestCase): +@@ -44,6 +44,8 @@ class NoContextTests(TestCase): self.assertEqual("19700101000000.0Z", ldb.timestring(0)) self.assertEqual("20071119191012.0Z", ldb.timestring(1195499412)) -+ if os.environ.get('DEB_HOST_ARCH_BITS', '64') == '32': -+ self.skipTest('Test failing on 32-bit') ++ self.skipTest('Test failing on 32-bit') + self.assertEqual("00000101000000.0Z", ldb.timestring(-62167219200)) self.assertEqual("99991231235959.0Z", ldb.timestring(253402300799)) -@@ -62,6 +65,9 @@ class NoContextTests(TestCase): +@@ -62,6 +64,8 @@ class NoContextTests(TestCase): self.assertEqual(0, ldb.string_to_time("19700101000000.0Z")) self.assertEqual(1195499412, ldb.string_to_time("20071119191012.0Z")) -+ if os.environ.get('DEB_HOST_ARCH_BITS', '64') == '32': -+ self.skipTest('Test failing on 32-bit') ++ self.skipTest('Test failing on 32-bit') + self.assertEqual(-62167219200, ldb.string_to_time("00000101000000.0Z")) self.assertEqual(253402300799, ldb.string_to_time("99991231235959.0Z")) |