diff --git a/libc/test/src/__support/File/file_test.cpp b/libc/test/src/__support/File/file_test.cpp index 04ab78b07d04c..17dad4d5ac917 100644 --- a/libc/test/src/__support/File/file_test.cpp +++ b/libc/test/src/__support/File/file_test.cpp @@ -510,4 +510,5 @@ TEST(LlvmLibcFileTest, WriteSplit) { static constexpr size_t WR_EXPECTED = AVAIL - (sizeof(data) - 1); ASSERT_EQ(WR_EXPECTED, f->write(data2, sizeof(data2) - 1).value); EXPECT_TRUE(f->error()); + ASSERT_EQ(f->close(), 0); }