summaryrefslogtreecommitdiff
path: root/tests/file_ioctl.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headersDmitry V. Levin2020-06-011-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* Include <linux/types.h> before <linux/fiemap.h> and <linux/hiddev.h>Dmitry V. Levin2020-05-311-0/+1
| | | | | | | | | | <linux/fiemap.h> and <linux/hiddev.h> used to require <linux/types.h> to be included beforehand. * file_ioctl.c [HAVE_LINUX_FIEMAP_H]: Include <linux/types.h> before <linux/fiemap.h>. * tests/file_ioctl.c: Likewise. * tests/ioctl.c: Include <linux/types.h> before <linux/hiddev.h>.
* Add copyright headers to some files that lack themDmitry V. Levin2018-12-241-0/+7
| | | | | | We do our best to keep copyright headers up to date, yet git history provides better information on this subject and is more accurate than copyright headers.
* tests: use TAIL_ALLOC_OBJECT_CONST_PTRDmitry V. Levin2017-03-161-1/+1
| | | | | | | | | Automatically convert tests to use TAIL_ALLOC_OBJECT_CONST_PTR macro with the following sed expression: sed -ri \ 's/^([[:space:]]*)(([^*]+[[:alnum:]_])( \*)?) *\*( *const )?([^ =]+) = tail_alloc\(sizeof\((\2|\*\6)\)\);/\1TAIL_ALLOC_OBJECT_CONST_PTR(\2, \6);/' \ tests/*.c
* tests: add testing for btrfs ioctlsJeff Mahoney2016-05-241-0/+2
| | | | | | | | | * tests/btrfs.c: New file. * tests/btrfs.test: New test. * tests/btrfs-v.test: Likewise. * tests/.gitignore: Add btrfs. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add btrfs.test and btrfs-v.test.
* tests/file_ioctl.c: use tail_allocDmitry V. Levin2016-05-241-5/+7
| | | | * tests/file_ioctl.c (main): Allocate struct fiemap using tail_alloc.
* tests/file_ioctl.c: fix build on systems without <linux/fiemap.h>Dmitry V. Levin2016-05-241-6/+14
| | | | | * tests/file_ioctl.c: Include "tests.h" first. Skip the test if [!HAVE_LINUX_FIEMAP_H].
* tests: add testing for FS_IOC_FIEMAPJeff Mahoney2016-05-241-0/+33
This is limited to FIEMAP. FICLONE* and FIDEDUPERANGE originated in btrfs and will be tested there. * tests/file_ioctl.c: New file. * tests/file_ioctl.test: New test. * tests/.gitignore: Add file_ioctl. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add file_ioctl.test.