@@ -165,7 +165,7 @@ void CheckQueueTest::Correct_Queue_range(std::vector<size_t> range)
165165 for (const size_t i : range) {
166166 size_t total = i;
167167 FakeCheckCheckCompletion::n_calls = 0 ;
168- CCheckQueueControl<FakeCheckCheckCompletion> control (small_queue. get () );
168+ CCheckQueueControl<FakeCheckCheckCompletion> control (* small_queue);
169169 while (total) {
170170 vChecks.clear ();
171171 vChecks.resize (std::min<size_t >(total, m_rng.randrange (10 )));
@@ -220,7 +220,7 @@ BOOST_AUTO_TEST_CASE(test_CheckQueue_Catches_Failure)
220220{
221221 auto fixed_queue = std::make_unique<Fixed_Queue>(QUEUE_BATCH_SIZE, SCRIPT_CHECK_THREADS);
222222 for (size_t i = 0 ; i < 1001 ; ++i) {
223- CCheckQueueControl<FixedCheck> control (fixed_queue. get () );
223+ CCheckQueueControl<FixedCheck> control (* fixed_queue);
224224 size_t remaining = i;
225225 while (remaining) {
226226 size_t r = m_rng.randrange (10 );
@@ -246,7 +246,7 @@ BOOST_AUTO_TEST_CASE(test_CheckQueue_Recovers_From_Failure)
246246 auto fail_queue = std::make_unique<Fixed_Queue>(QUEUE_BATCH_SIZE, SCRIPT_CHECK_THREADS);
247247 for (auto times = 0 ; times < 10 ; ++times) {
248248 for (const bool end_fails : {true , false }) {
249- CCheckQueueControl<FixedCheck> control (fail_queue. get () );
249+ CCheckQueueControl<FixedCheck> control (* fail_queue);
250250 {
251251 std::vector<FixedCheck> vChecks;
252252 vChecks.resize (100 , FixedCheck (std::nullopt ));
@@ -268,7 +268,7 @@ BOOST_AUTO_TEST_CASE(test_CheckQueue_UniqueCheck)
268268 size_t COUNT = 100000 ;
269269 size_t total = COUNT;
270270 {
271- CCheckQueueControl<UniqueCheck> control (queue. get () );
271+ CCheckQueueControl<UniqueCheck> control (* queue);
272272 while (total) {
273273 size_t r = m_rng.randrange (10 );
274274 std::vector<UniqueCheck> vChecks;
@@ -300,7 +300,7 @@ BOOST_AUTO_TEST_CASE(test_CheckQueue_Memory)
300300 for (size_t i = 0 ; i < 1000 ; ++i) {
301301 size_t total = i;
302302 {
303- CCheckQueueControl<MemoryCheck> control (queue. get () );
303+ CCheckQueueControl<MemoryCheck> control (* queue);
304304 while (total) {
305305 size_t r = m_rng.randrange (10 );
306306 std::vector<MemoryCheck> vChecks;
@@ -324,7 +324,7 @@ BOOST_AUTO_TEST_CASE(test_CheckQueue_FrozenCleanup)
324324 auto queue = std::make_unique<FrozenCleanup_Queue>(QUEUE_BATCH_SIZE, SCRIPT_CHECK_THREADS);
325325 bool fails = false ;
326326 std::thread t0 ([&]() {
327- CCheckQueueControl<FrozenCleanupCheck> control (queue. get () );
327+ CCheckQueueControl<FrozenCleanupCheck> control (* queue);
328328 std::vector<FrozenCleanupCheck> vChecks (1 );
329329 control.Add (std::move (vChecks));
330330 auto result = control.Complete (); // Hangs here
@@ -364,7 +364,7 @@ BOOST_AUTO_TEST_CASE(test_CheckQueueControl_Locks)
364364 for (size_t i = 0 ; i < 3 ; ++i) {
365365 tg.emplace_back (
366366 [&]{
367- CCheckQueueControl<FakeCheck> control (queue. get () );
367+ CCheckQueueControl<FakeCheck> control (* queue);
368368 // While sleeping, no other thread should execute to this point
369369 auto observed = ++nThreads;
370370 UninterruptibleSleep (std::chrono::milliseconds{10 });
@@ -387,7 +387,7 @@ BOOST_AUTO_TEST_CASE(test_CheckQueueControl_Locks)
387387 {
388388 std::unique_lock<std::mutex> l (m);
389389 tg.emplace_back ([&]{
390- CCheckQueueControl<FakeCheck> control (queue. get () );
390+ CCheckQueueControl<FakeCheck> control (* queue);
391391 std::unique_lock<std::mutex> ll (m);
392392 has_lock = true ;
393393 cv.notify_one ();
0 commit comments