]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional: skip memaddr tests on 32-bit builds
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 28 Feb 2025 10:27:36 +0000 (10:27 +0000)
committerThomas Huth <thuth@redhat.com>
Fri, 7 Mar 2025 06:50:19 +0000 (07:50 +0100)
commit42ea7f782a32df4ac58e7d9d73e736def3057ef7
tree2c383d99d08b2f4508fc0e72fc28a12c3ddee786
parent188f71929520940048ec5ba85ea30588e0566e6e
tests/functional: skip memaddr tests on 32-bit builds

If the QEMU binary was built for a 32-bit ELF target we cannot run the
memory address space tests as they all require ability to address more
RAM that can be represented on 32-bit.

We can't use a decorator to skip the tests as we need setUp() to run to
pick the QEMU binary, thus we must call a method at the start of each
test to check and skip it. The functional result is effectively the
same as using a decorator, just less pretty. This code will go away when
32-bit hosts are full dropped from QEMU.

The code allows any non-ELF target since all macOS versions supported
at 64-bit only and we already dropped support for 32-bit Windows.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20250228102738.3064045-6-berrange@redhat.com>
[thuth: Add missing byteorder='little' to from_bytes()]
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/test_mem_addr_space.py