diff options
Diffstat (limited to 'test/io.cc')
| -rw-r--r-- | test/io.cc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -128,8 +128,8 @@ TEST_F(IoTest, read_empty) { ASSERT_TRUE(ret.has_value()); std::string tmp(10, ' '); auto ret2 = ret.value()->read(tmp.data(), tmp.size()); - ASSERT_TRUE(ret2.has_value()); - EXPECT_EQ(0, ret2.value()); + ASSERT_FALSE(ret2.has_value()); + EXPECT_EQ(io::ReadError::Eof, ret2.error()); } TEST_F(IoTest, skip_empty) { @@ -138,8 +138,8 @@ TEST_F(IoTest, skip_empty) { auto ret = io::openat(dirfd(), "test"); ASSERT_TRUE(ret.has_value()); auto ret2 = ret.value()->skip(10); - ASSERT_TRUE(ret2.has_value()); - EXPECT_EQ(0, ret2.value()); + ASSERT_FALSE(ret2.has_value()); + EXPECT_EQ(io::ReadError::Eof, ret2.error()); } TEST_F(IoTest, read) { |
