diff --git a/test/gtest-extra-test.cc b/test/gtest-extra-test.cc index e9c244fd..fc738703 100644 --- a/test/gtest-extra-test.cc +++ b/test/gtest-extra-test.cc @@ -286,7 +286,7 @@ TEST(FileTest, CloseError) { #else close(f->descriptor()); // Closing file twice causes death on Windows. - f->close(); + EXPECT_DEATH(f->close(), ""); delete f; #endif }