Skip to content

Commit

Permalink
tests/CacheDisk: Use separate path for each test
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Apr 9, 2021
1 parent 92612ad commit 75ccbd7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/CacheDisk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ TEST_CASE( "freshen frames", "[libopensoht][cachedisk]" )

TEST_CASE( "multiple remove", "[libopenshot][cachedisk]" )
{
// Create cache object in default temp_path()/preview-cache location
CacheDisk c("", "PPM", 1.0, 0.25);
QDir temp_path = QDir::tempPath() + QString("/multiple-remove/");
CacheDisk c(temp_path, "PPM", 1.0, 0.25);

// Add frames to disk cache
for (int i = 1; i <= 20; i++)
Expand Down Expand Up @@ -214,7 +214,6 @@ TEST_CASE( "multiple remove", "[libopenshot][cachedisk]" )
CHECK(c.Count() == 0);

// Delete cache directory
QDir temp_path = QDir::tempPath() + "/preview-cache/";
temp_path.removeRecursively();
}

Expand Down

0 comments on commit 75ccbd7

Please sign in to comment.