From 8444effa81ad54cdd7214127df375f56260a0719 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Thu, 1 Oct 2026 03:23:25 -0500 Subject: [PATCH] test: SavingTest fails instead of crashing when its XML isn't next to it Co-Authored-By: Claude Opus 5.5 --- tests/dGameTests/dComponentsTests/SavingTests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/dGameTests/dComponentsTests/SavingTests.cpp b/tests/dGameTests/dComponentsTests/SavingTests.cpp index d9c721930..e26254d78 100644 --- a/tests/dGameTests/dComponentsTests/SavingTests.cpp +++ b/tests/dGameTests/dComponentsTests/SavingTests.cpp @@ -20,7 +20,8 @@ protected: entity = std::make_unique(1, GameDependenciesTest::info); character = std::make_unique(1, nullptr); - doc.LoadFile("./test_xml_data.xml"); + // Copied next to the test binary: run it from there (ctest does) + ASSERT_EQ(doc.LoadFile("./test_xml_data.xml"), tinyxml2::XML_SUCCESS); entity->SetCharacter(character.get()); character->SetEntity(entity.get());