From a07fca58c3017a020ddca9d45ef1597442986c66 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Fri, 9 Apr 2021 05:55:10 -0400 Subject: [PATCH] tests/CacheDisk: Use separate path for each test --- tests/CacheDisk.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/CacheDisk.cpp b/tests/CacheDisk.cpp index 25c1cf67..01df3f6e 100644 --- a/tests/CacheDisk.cpp +++ b/tests/CacheDisk.cpp @@ -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(); }