diff options
| author | Mehdi Amini <joker.eph@gmail.com> | 2025-08-14 15:36:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-14 15:36:46 +0200 |
| commit | df57d6a01e85ca78da2febab21b268d9fd6955a0 (patch) | |
| tree | 19b0aab453e6bc7e2b15d3220024dfdacd4fa57e /llvm/unittests/CAS/ObjectStoreTest.cpp | |
| parent | df86ea61b7ed484ca797f96d7ad40fd9ada7ba30 (diff) | |
| parent | 7bda76367f19cfc19086f68d9dd5ac019a9ceccd (diff) | |
Merge branch 'main' into users/joker-eph-python-bindings-maintainersusers/joker-eph-python-bindings-maintainers
Diffstat (limited to 'llvm/unittests/CAS/ObjectStoreTest.cpp')
| -rw-r--r-- | llvm/unittests/CAS/ObjectStoreTest.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/unittests/CAS/ObjectStoreTest.cpp b/llvm/unittests/CAS/ObjectStoreTest.cpp index c036d31bf383..b3c408758a00 100644 --- a/llvm/unittests/CAS/ObjectStoreTest.cpp +++ b/llvm/unittests/CAS/ObjectStoreTest.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "llvm/CAS/ObjectStore.h" +#include "llvm/Config/llvm-config.h" #include "llvm/Support/Process.h" #include "llvm/Support/RandomNumberGenerator.h" #include "llvm/Support/ThreadPool.h" @@ -268,12 +269,13 @@ TEST_P(CASTest, NodesBig) { ASSERT_THAT_ERROR(CAS->validate(CAS->getID(ID)), Succeeded()); } +#if LLVM_ENABLE_THREADS /// Common test functionality for creating blobs in parallel. You can vary which /// cas instances are the same or different, and the size of the created blobs. static void testBlobsParallel(ObjectStore &Read1, ObjectStore &Read2, ObjectStore &Write1, ObjectStore &Write2, uint64_t BlobSize) { - SCOPED_TRACE(testBlobsParallel); + SCOPED_TRACE("testBlobsParallel"); unsigned BlobCount = 100; std::vector<std::string> Blobs; Blobs.reserve(BlobCount); @@ -325,7 +327,7 @@ static void testBlobsParallel(ObjectStore &Read1, ObjectStore &Read2, } static void testBlobsParallel1(ObjectStore &CAS, uint64_t BlobSize) { - SCOPED_TRACE(testBlobsParallel1); + SCOPED_TRACE("testBlobsParallel1"); testBlobsParallel(CAS, CAS, CAS, CAS, BlobSize); } @@ -342,4 +344,5 @@ TEST_P(CASTest, BlobsBigParallel) { uint64_t Size = 100ULL * 1024; ASSERT_NO_FATAL_FAILURE(testBlobsParallel1(*CAS, Size)); } -#endif +#endif // EXPENSIVE_CHECKS +#endif // LLVM_ENABLE_THREADS |
