From 5922f08e8616ef9766d47086cb6b8d4b390df153 Mon Sep 17 00:00:00 2001 From: Masonlet Date: Tue, 25 Nov 2025 16:29:56 -0500 Subject: [PATCH] Add missing error message from PlyFewerFacesThanDeclared --- tests/mesh/ply_parser_test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/mesh/ply_parser_test.cpp b/tests/mesh/ply_parser_test.cpp index a98b31a..cd962a2 100644 --- a/tests/mesh/ply_parser_test.cpp +++ b/tests/mesh/ply_parser_test.cpp @@ -492,7 +492,12 @@ end_header 3 0 1 2 )"; createTestFile("test_data/fewer_faces.ply", ply); + + testing::internal::CaptureStderr(); expectInvalidParse("test_data/fewer_faces.ply"); + const std::string output = testing::internal::GetCapturedStderr(); + EXPECT_NE(output.find("Face count declared: 2 but parsed: 1"), std::string::npos); + EXPECT_NE(output.find("Failed to parse face data"), std::string::npos); } TEST_F(PlyParserTest, PlyInvalidVertexIndex) {