mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-17 01:05:28 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user