diff options
Diffstat (limited to 'standalone/tests/primary_test.cpp')
-rw-r--r-- | standalone/tests/primary_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/standalone/tests/primary_test.cpp b/standalone/tests/primary_test.cpp index 010bf84490e..a7a2b316061 100644 --- a/standalone/tests/primary_test.cpp +++ b/standalone/tests/primary_test.cpp @@ -149,7 +149,7 @@ TEST(ScudoPrimaryTest, PrimaryIterate) { static std::mutex Mutex; static std::condition_variable Cv; -static bool Ready = false; +static bool Ready; template <typename Primary> static void performAllocations(Primary *Allocator) { static THREADLOCAL typename Primary::CacheT Cache; @@ -176,6 +176,7 @@ template <typename Primary> static void performAllocations(Primary *Allocator) { } template <typename Primary> static void testPrimaryThreaded() { + Ready = false; auto Deleter = [](Primary *P) { P->unmapTestOnly(); delete P; |