Skip to content

Commit

Permalink
#6031: Remove a .darkradiant file in another unit test that used to s…
Browse files Browse the repository at this point in the history
…tick around after a full test run.
  • Loading branch information
codereader committed Aug 13, 2022
1 parent 95b3470 commit 3035865
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/EntityClass.cpp
Expand Up @@ -695,6 +695,9 @@ TEST_F(EntityClassTest, MissingEntityClassPreservesPrimitives)
EXPECT_EQ(algorithm::getChildCount(entity, algorithm::patchHasMaterial("textures/common/caulk")), 1)
<< "Expected 1 patch to carry the caulk material";

// Remove the .darkradiant file (that is going to be created) after this test.
TemporaryFile tempDarkRadiantFile(_context.getTestProjectPath() + "maps/missing_entitydef.darkradiant");

GlobalCommandSystem().executeCommand("SaveMap");

EXPECT_EQ(algorithm::loadTextFromVfsFile("maps/" + mapName), mapTextBeforeSaving)
Expand Down

0 comments on commit 3035865

Please sign in to comment.