Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion llvm/unittests/CAS/ObjectStoreTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -329,6 +330,7 @@ static void testBlobsParallel1(ObjectStore &CAS, uint64_t BlobSize) {
testBlobsParallel(CAS, CAS, CAS, CAS, BlobSize);
}

#if LLVM_ENABLE_THREADS
TEST_P(CASTest, BlobsParallel) {
std::shared_ptr<ObjectStore> CAS = createObjectStore();
uint64_t Size = 1ULL * 1024;
Expand All @@ -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