]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r330696, r330709, r330742, r331358
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 3 Aug 2018 14:13:15 +0000 (14:13 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 3 Aug 2018 14:13:15 +0000 (14:13 +0000)
commit543cc48738eca66650505ebb1a9c3e25b01d3277
tree2968c32429fa9f1c4e56c66833039cc32fd742cf
parentbadf75467665fcfd6060baaeaea73702c8d16eed
MFC r330696, r330709, r330742, r331358

r330696:
Add some functional tests for tftpd(8)

tftpd(8) is difficult to test in isolation due to its relationship with
inetd.  Create a test program that mimics the behavior of tftp(1) and
inetd(8) and verifies tftpd's response in several different scenarios.

These test cases cover all of the basic TFTP protocol, but not the optional
parts.

PR: 157700
PR: 225996
PR: 226004
PR: 226005
Differential Revision: https://reviews.freebsd.org/D14310

r330709:
Commit missing file from r330696

X-MFC-With: 330696

r330742:
tftpd: fix the build of tests on i386 after 330696

It's those darn printf format specifiers again

Reported by: cy, kibab
X-MFC-With: 330696

r331358:
tftpd: misc Coverity cleanup in the tests

A bunch of unchecked return values from open(2) and read(2)

Reported by: Coverity
CID: 138690013869111386926138692813869321386942
CID: 13869611386979
X-MFC-With: 330696

git-svn-id: svn://svn.freebsd.org/base/stable/10@337246 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/mtree/BSD.tests.dist
libexec/tftpd/Makefile
libexec/tftpd/tests/Makefile [new file with mode: 0644]
libexec/tftpd/tests/functional.c [new file with mode: 0644]