Use the architecture of the python interpreter running the test to
detect 32bit systems.

Signed-off-by: Andrew Gregory <[email protected]>
---

Should be applied before automake integration so git bisect won't consider the
non-zero return for an unexpected pass a failure.

Tested in a 32bit chroot.

 test/pacman/tests/query006.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/pacman/tests/query006.py b/test/pacman/tests/query006.py
index 3668478..0f6f762 100644
--- a/test/pacman/tests/query006.py
+++ b/test/pacman/tests/query006.py
@@ -24,4 +24,7 @@
 self.addrule("PACMAN_OUTPUT=^Build Date.* 2065")
 self.addrule("PACMAN_OUTPUT=^Install Date.* 2286")
 
-self.expectfailure = True
+# expect failure on 32bit systems
+import sys
+if sys.maxsize <= 2**32:
+    self.expectfailure = True
-- 
1.8.3.4


Reply via email to