Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-08-18 15:06:30 -0400
committerAllan McRae <allan@archlinux.org>2013-08-21 11:00:18 +1000
commit2e2c614f0e35dfbf80c17d55377418c1ded3f065 (patch)
treef740f3a0ce3d4e09166a99593eed25dc09faa193
parent48861f509a817649f6cbda63e5ed253bdebc4f56 (diff)
query006: only set expectfailure on 32-bit systems
Use the architecture of the python interpreter running the test to detect 32bit systems. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--test/pacman/tests/query006.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pacman/tests/query006.py b/test/pacman/tests/query006.py
index 36684785..0f6f762b 100644
--- a/test/pacman/tests/query006.py
+++ b/test/pacman/tests/query006.py
@@ -24,4 +24,7 @@ self.addrule("PACMAN_OUTPUT=^Installed Size.*9765625.00 KiB")
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