test: use simple portable sendfile
authorGreg V <greg@unrelenting.technology>
Tue, 10 Jul 2018 10:57:12 +0000 (13:57 +0300)
committerGreg V <greg@unrelenting.technology>
Mon, 16 Jul 2018 10:48:54 +0000 (13:48 +0300)
commit8cc4de5fc90fbcf5675f7f5bba9a87cba19b368b
tree64797141f998c08dcf9efb1ba856264605ef53ca
parent63a2180b4015507c1fcc99cc8dba5ef06686cfc8
test: use simple portable sendfile

There's no need for high performance in these little tests, so instead of
supporting various platform-specific sendfile() implementations, just use a local read-write function.
test/litest.c
test/litest.h