You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
tests/CacheDisk: Use separate path for each test
This commit is contained in:
@@ -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.path().toStdString(), "PPM", 1.0, 0.25);
|
||||
|
||||
// Add frames to disk cache
|
||||
for (int i = 1; i <= 20; i++)
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user