syzkaller/sys/fuchsia/test/fd_assignment
Dmitry Vyukov 2763e04c22 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
2018-08-03 21:08:02 +02:00

10 lines
200 B
Plaintext

# 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