test: SavingTest fails instead of crashing when its XML isn't next to it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 03:23:25 -05:00
parent 951f9368ae
commit 8444effa81

View File

@@ -20,7 +20,8 @@ protected:
entity = std::make_unique<Entity>(1, GameDependenciesTest::info);
character = std::make_unique<Character>(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());