diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-07-25 16:45:57 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-08-03 21:08:02 +0200 |
| commit | 2763e04c22143367e0b613ac612c537b6d94d2c9 (patch) | |
| tree | f311d8215aa6e148c0db2e7bfface5d10b0654af /sys/linux/test/fd_assignment | |
| parent | 78e3ad98f6120342ae56b9812c695637fc245c75 (diff) | |
tools/syz-runtest: add tool for program unit testing
The tool is run as:
$ syz-runtest -config manager.config
This runs all programs from sys/*/test/* in different modes
on actual VMs and checks results.
Fixes #603
Diffstat (limited to 'sys/linux/test/fd_assignment')
| -rw-r--r-- | sys/linux/test/fd_assignment | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/linux/test/fd_assignment b/sys/linux/test/fd_assignment new file mode 100644 index 000000000..0aa82a8b2 --- /dev/null +++ b/sys/linux/test/fd_assignment @@ -0,0 +1,9 @@ +# Tests that fd's are always allocated starting from 3. + +close(0x3) # EBADF +close(0x4) # EBADF +close(0x5) # EBADF +pipe(&(0x7f0000000000)={<r0=>0x0, <r1=>0x0}) +close(0x3) +close(0x4) +close(0x5) # EBADF |
