Skip to content

Commit

Permalink
disable spidev tests on 32-bit platforms
Browse files Browse the repository at this point in the history
The class IoctlSpiBase (see src/umockdev-spi.vala) has a comment
that it only works on 64bit platforms.
Disable those tests on 32-bit platforms for now.

This fixes my tests on the (32-bit) hppa platform.

Signed-off-by: Helge Deller <[email protected]>
  • Loading branch information
hdeller committed Dec 29, 2024
1 parent ba63ef8 commit ad46cce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test-umockdev-vala.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,10 @@ main (string[] args)

Test.add_func ("/umockdev-testbed-vala/usbfs_ioctl_pcap", t_usbfs_ioctl_pcap);

Test.add_func ("/umockdev-testbed-vala/spidev_ioctl", t_spidev_ioctl);
// run spidev tests on 64-bit platforms only.
if (sizeof(long) != 4) {
Test.add_func ("/umockdev-testbed-vala/spidev_ioctl", t_spidev_ioctl);
}

Test.add_func ("/umockdev-testbed-vala/hidraw_ioctl", t_hidraw_ioctl);

Expand Down

0 comments on commit ad46cce

Please sign in to comment.