diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/slang-unit-test/unit-test-lock-file.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/slang-unit-test/unit-test-lock-file.cpp b/tools/slang-unit-test/unit-test-lock-file.cpp index 6458d4b5f..6f1e0b6b8 100644 --- a/tools/slang-unit-test/unit-test-lock-file.cpp +++ b/tools/slang-unit-test/unit-test-lock-file.cpp @@ -37,11 +37,17 @@ SLANG_UNIT_TEST(lockFileSync) SLANG_IGNORE_TEST #endif + // Clean up any leftover lock file from previous runs + File::remove(fileName); + // Test using multiple threads. { static std::atomic<uint32_t> lockCounter; static std::atomic<uint32_t> unlockCounter; + lockCounter = 0; + unlockCounter = 0; + struct LockTask { std::thread thread; |
