diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-07-13 11:53:31 -0700 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2017-07-19 07:19:26 -0700 |
commit | c8cbbab3eb02794a3a23c7efdcab862810d8590b (patch) | |
tree | b565c1d49411a34b256fdff45bca8838a9ff130c /test | |
parent | 85bb9d8101b3c59b4df2c08a07026782bcf710b2 (diff) | |
download | nix-c8cbbab3eb02794a3a23c7efdcab862810d8590b.zip |
Add 'bad' prefixes for read, write_*, and readwrite ioctls
Diffstat (limited to 'test')
-rw-r--r-- | test/sys/test_ioctl.rs | 7 |
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); |