From 2e2c614f0e35dfbf80c17d55377418c1ded3f065 Mon Sep 17 00:00:00 2001
From: Andrew Gregory <andrew.gregory.8@gmail.com>
Date: Sun, 18 Aug 2013 15:06:30 -0400
Subject: 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>
---
 test/pacman/tests/query006.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'test/pacman/tests')

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
-- 
cgit v1.2.3-70-g09d2