Skip to content

Commit 6062c67

Browse files
committed
sanitizer_common: unbreak ThreadRegistry tests
https://reviews.llvm.org/D105713 forgot to update tests for the new ctor. Differential Revision: https://reviews.llvm.org/D105772
1 parent 03a3f86 commit 6062c67

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler-rt/lib/sanitizer_common/tests/sanitizer_thread_registry_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ static void TestRegistry(ThreadRegistry *registry, bool has_quarantine) {
136136

137137
TEST(SanitizerCommon, ThreadRegistryTest) {
138138
ThreadRegistry quarantine_registry(GetThreadContext<ThreadContextBase>,
139-
kMaxRegistryThreads,
140-
kRegistryQuarantine);
139+
kMaxRegistryThreads, kRegistryQuarantine,
140+
0);
141141
TestRegistry(&quarantine_registry, true);
142142

143143
ThreadRegistry no_quarantine_registry(GetThreadContext<ThreadContextBase>,
144144
kMaxRegistryThreads,
145-
kMaxRegistryThreads);
145+
kMaxRegistryThreads, 0);
146146
TestRegistry(&no_quarantine_registry, false);
147147
}
148148

@@ -227,7 +227,7 @@ TEST(SanitizerCommon, ThreadRegistryThreadedTest) {
227227
memset(&num_joined, 0, sizeof(num_created));
228228

229229
ThreadRegistry registry(GetThreadContext<TestThreadContext>,
230-
kThreadsPerShard * kNumShards + 1, 10);
230+
kThreadsPerShard * kNumShards + 1, 10, 0);
231231
ThreadedTestRegistry(&registry);
232232
}
233233

0 commit comments

Comments
 (0)