[pacman-dev] [PATCH 5.5/7] query006: only set expectfailure on 32-bit systems

Andrew Gregory andrew.gregory.8 at gmail.com
Sun Aug 18 15:06:30 EDT 2013


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

Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---

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



More information about the pacman-dev mailing list