use FileFd in HashSum test to unbreak non-linux ports
authorDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 3 Sep 2013 21:00:37 +0000 (23:00 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Tue, 3 Sep 2013 21:11:58 +0000 (23:11 +0200)
commit163d39cc4e81081d809b5c12c9cf60ee6db510f6
treec3f55dc1caad32a414113d769541543f17465ca7
parentee0167c4a0bf0c6de5437d3b641e7e7c0c614f17
use FileFd in HashSum test to unbreak non-linux ports

The testcode happily mixes FILE* operations and direct access to fds
which is even a bit suprising that it works on linux and worked so
long for non-linux ports, so we switch to usage of FileFd instead
which provides us with simple fd-only operations. Its overkill for this
test as its a bare file and we ask for the descriptor all the time, but
it shouldn't hurt to implicitly test it a bit this way.

Closes: 721723
Thanks: Aaron M. Ucko
test/libapt/hashsums_test.cc