summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorBryant Mairs <bryant@mai.rs>2017-07-13 11:53:31 -0700
committerMarcin Mielniczuk <marmistrz.dev@zoho.eu>2017-07-25 09:09:52 +0200
commit571386b812c3914a39faed449939e629a1c5b58d (patch)
tree4298d8cc9836447e9078b7f6b16b13af1a8924f3 /test/sys
parent3cf4cc68174ebe126a537ba8f29c29243201d917 (diff)
downloadnix-571386b812c3914a39faed449939e629a1c5b58d.zip
Add 'bad' prefixes for read, write_*, and readwrite ioctls
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/test_ioctl.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/sys/test_ioctl.rs b/test/sys/test_ioctl.rs
index 7f0018d3..18432266 100644
--- a/test/sys/test_ioctl.rs
+++ b/test/sys/test_ioctl.rs
@@ -1,8 +1,11 @@
#![allow(dead_code)]
// Simple tests to ensure macro generated fns compile
-ioctl!(bad do_bad with 0x1234);
-ioctl!(bad none do_bad_none with 0x1234);
+ioctl!(bad none do_bad with 0x1234);
+ioctl!(bad read do_bad_read with 0x1234; u16);
+ioctl!(bad write_int do_bad_write_int with 0x1234);
+ioctl!(bad write_ptr do_bad_write_ptr with 0x1234; u8);
+ioctl!(bad readwrite do_bad_readwrite with 0x1234; u32);
ioctl!(none do_none with 0, 0);
ioctl!(read read_test with 0, 0; u32);
ioctl!(write_int write_ptr_int with 0, 0);