mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
sys-libs/ldb: fix patch
Bug: https://bugs.gentoo.org/832257 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user