Description: Allow test to pass on 32 bit ARM systems with Debian's 64 bit time
Author: Ben Westover <me@benthetechguy.net>
Forwarded: not-needed
Last-Update: 2024-03-20

--- a/test/pacman/tests/query006.py
+++ b/test/pacman/tests/query006.py
@@ -24,7 +24,7 @@
 self.addrule("PACMAN_OUTPUT=^Build Date.* 2065")
 self.addrule("PACMAN_OUTPUT=^Install Date.* 2286")
 
-# expect failure on 32bit systems
-import sys
-if sys.maxsize <= 2**32:
+# expect failure on 32bit systems other than ARMv7
+import sys, platform
+if sys.maxsize <= 2**32 and platform.machine() != "armv7l":
     self.expectfailure = True
--- a/test/pacman/meson.build
+++ b/test/pacman/meson.build
@@ -339,8 +339,8 @@
 
 xfail_tests = {
   'tests/deprange001.py': true,
-  # expect failure on 32 bit machines
-  'tests/query006.py': cc.sizeof('ssize_t') < 8,
+  # expect failure on 32 bit machines other than ARMv7
+  'tests/query006.py': cc.sizeof('ssize_t') < 8 and host_machine.cpu_family() != 'arm',
   'tests/replace110.py': true,
   'tests/sync-update-package-removing-required-provides.py': true,
   'tests/sync403.py': true,
