summaryrefslogtreecommitdiffstats
path: root/tools/slang-unit-test/unit-test-persistent-cache.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-09-01 01:25:31 -0700
committerGitHub <noreply@github.com>2023-09-01 01:25:31 -0700
commit9c11a87f8f811a9a110d73a24ab93443ea347506 (patch)
tree9b1b0f154cff0faf7efd8d77fcd7f7911aea4a44 /tools/slang-unit-test/unit-test-persistent-cache.cpp
parentb7d19330c2d42937835d674758a05af3891e025b (diff)
Fix GLSL code gen around RayQuery and HitObject types. (#3173)
* Update slang-llvm. * Fix. * fix. * Fix unit tests for multi-thread execution. * Fix tests. * fixes. * update tests. * Add gfx-smoke to linux expected failure list. * Try fix test. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/slang-unit-test/unit-test-persistent-cache.cpp')
-rw-r--r--tools/slang-unit-test/unit-test-persistent-cache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/slang-unit-test/unit-test-persistent-cache.cpp b/tools/slang-unit-test/unit-test-persistent-cache.cpp
index d2d8aeb25..cb7ebcab2 100644
--- a/tools/slang-unit-test/unit-test-persistent-cache.cpp
+++ b/tools/slang-unit-test/unit-test-persistent-cache.cpp
@@ -5,6 +5,7 @@
#include "../../source/core/slang-io.h"
#include "../../source/core/slang-file-system.h"
#include "../../source/core/slang-random-generator.h"
+#include "../../source/core/slang-process.h"
#include <chrono>
#include <thread>
@@ -86,7 +87,7 @@ struct PersistentCacheTest
PersistentCacheTest(Count maxEntryCount = 0)
{
osFileSystem = OSFileSystem::getMutableSingleton();
- cacheDirectory = Path::simplify(Path::getParentDirectory(Path::getExecutablePath()) + "/persistent-cache-test");
+ cacheDirectory = Path::simplify(Path::getParentDirectory(Path::getExecutablePath()) + "/persistent-cache-test" + String(Process::getId()));
removeCacheFiles();