- BOOST_CHECK_EQUAL (fg.seek (total_length * 2, SEEK_SET), total_length * 2);
- /* and attempting to read should return nothing */
- BOOST_CHECK_EQUAL (fg.read (test, 64), 0);
+ BOOST_CHECK_EQUAL (fg.seek(total_length * 2, SEEK_SET), total_length * 2);
+ /* and attempting to read should return nothing and EOF */
+ auto result = fg.read(test, 64);
+ BOOST_CHECK_EQUAL(result.bytes_read, 0);
+ BOOST_CHECK(result.eof);