From a3e7170cf24e8325976921d02a0967fa4dfcedc0 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Sun, 29 Dec 2024 18:15:14 +0100 Subject: [PATCH] tests: Disable spidev on big-endian 32-bit platforms The class IoctlSpiBase (see src/umockdev-spi.vala) has a comment that it only works on 64bit platforms. Disable those tests on 32-bit big-endian platforms for now, such as Debian hppa. Co-Authored-By: Martin Pitt --- tests/test-umockdev-vala.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-umockdev-vala.vala b/tests/test-umockdev-vala.vala index 0d4add0..5c19140 100644 --- a/tests/test-umockdev-vala.vala +++ b/tests/test-umockdev-vala.vala @@ -682,6 +682,12 @@ t_usbfs_ioctl_pcap () void t_spidev_ioctl () { + // does not work on 32 bit big-endian (such as Debian hppa) + if (sizeof(long) != sizeof(int64) && BYTE_ORDER == ByteOrder.BIG_ENDIAN) { + stdout.printf ("[SKIP: SPI emulation does not work on 32 bit big-endian] "); + return; + } + var tb = new UMockdev.Testbed (); string device;