@@ -462,7 +462,7 @@ TEST_F(ControlBlocksTest, WaitUntil)
462
462
builder.addObscuredInput (" CONDITION" , block);
463
463
builder.build ();
464
464
465
- conditionReturnValue = false ;
465
+ setConditionReturnValue ( false ) ;
466
466
m_engine->start ();
467
467
468
468
m_engine->step ();
@@ -471,7 +471,7 @@ TEST_F(ControlBlocksTest, WaitUntil)
471
471
m_engine->step ();
472
472
ASSERT_TRUE (m_engine->isRunning ());
473
473
474
- conditionReturnValue = true ;
474
+ setConditionReturnValue ( true ) ;
475
475
m_engine->step ();
476
476
m_engine->step ();
477
477
ASSERT_FALSE (m_engine->isRunning ());
@@ -533,15 +533,15 @@ TEST_F(ControlBlocksTest, RepeatUntil)
533
533
builder.addObscuredInput (" CONDITION" , block);
534
534
builder.build ();
535
535
536
- conditionReturnValue = false ;
536
+ setConditionReturnValue ( false ) ;
537
537
m_engine->start ();
538
538
539
539
testing::internal::CaptureStdout ();
540
540
m_engine->step ();
541
541
ASSERT_EQ (testing::internal::GetCapturedStdout ().substr (0 , 10 ), " test\n test\n " );
542
542
ASSERT_TRUE (m_engine->isRunning ());
543
543
544
- conditionReturnValue = true ;
544
+ setConditionReturnValue ( true ) ;
545
545
m_engine->step ();
546
546
m_engine->step ();
547
547
ASSERT_FALSE (m_engine->isRunning ());
@@ -620,15 +620,15 @@ TEST_F(ControlBlocksTest, While)
620
620
builder.addObscuredInput (" CONDITION" , block);
621
621
builder.build ();
622
622
623
- conditionReturnValue = true ;
623
+ setConditionReturnValue ( true ) ;
624
624
m_engine->start ();
625
625
626
626
testing::internal::CaptureStdout ();
627
627
m_engine->step ();
628
628
ASSERT_EQ (testing::internal::GetCapturedStdout ().substr (0 , 10 ), " test\n test\n " );
629
629
ASSERT_TRUE (m_engine->isRunning ());
630
630
631
- conditionReturnValue = false ;
631
+ setConditionReturnValue ( false ) ;
632
632
m_engine->step ();
633
633
m_engine->step ();
634
634
ASSERT_FALSE (m_engine->isRunning ());
0 commit comments