]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Darwin regtest: update none ioctl_moans
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 14 Dec 2025 09:05:04 +0000 (10:05 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sun, 14 Dec 2025 09:05:04 +0000 (10:05 +0100)
This testcase needs IOCTL_REQUEST_BASE to be set to some bogus
value with the platform dependent "no direction" flag set.
That flag wasn't being set for Darwin and so the testcase was
failing.

none/tests/ioctl_moans.c

index d35075834252c7a4312df1b5eab9e9666c8e5aca..efb75823417674cd91bf0279607d5d5340110738 100644 (file)
@@ -13,6 +13,8 @@
 #define IOCTL_REQUEST_BASE (0x12345670 | _IOC(_IOC_NONE,0,0,0))
 # elif defined(VGO_freebsd)
 #define IOCTL_REQUEST_BASE (0x12345670 | _IO(0,0))
+# elif defined(VGO_darwin)
+#define IOCTL_REQUEST_BASE (0x12345670 | _IOC(IOC_VOID,0,0,0))
 # else
 #define IOCTL_REQUEST_BASE  0x12345670
 # endif