@@ -462,7 +462,7 @@ TEST_F(ControlBlocksTest, WaitUntil)
462462 builder.addObscuredInput (" CONDITION" , block);
463463 builder.build ();
464464
465- conditionReturnValue = false ;
465+ setConditionReturnValue ( false ) ;
466466 m_engine->start ();
467467
468468 m_engine->step ();
@@ -471,7 +471,7 @@ TEST_F(ControlBlocksTest, WaitUntil)
471471 m_engine->step ();
472472 ASSERT_TRUE (m_engine->isRunning ());
473473
474- conditionReturnValue = true ;
474+ setConditionReturnValue ( true ) ;
475475 m_engine->step ();
476476 m_engine->step ();
477477 ASSERT_FALSE (m_engine->isRunning ());
@@ -533,15 +533,15 @@ TEST_F(ControlBlocksTest, RepeatUntil)
533533 builder.addObscuredInput (" CONDITION" , block);
534534 builder.build ();
535535
536- conditionReturnValue = false ;
536+ setConditionReturnValue ( false ) ;
537537 m_engine->start ();
538538
539539 testing::internal::CaptureStdout ();
540540 m_engine->step ();
541541 ASSERT_EQ (testing::internal::GetCapturedStdout ().substr (0 , 10 ), " test\n test\n " );
542542 ASSERT_TRUE (m_engine->isRunning ());
543543
544- conditionReturnValue = true ;
544+ setConditionReturnValue ( true ) ;
545545 m_engine->step ();
546546 m_engine->step ();
547547 ASSERT_FALSE (m_engine->isRunning ());
@@ -620,15 +620,15 @@ TEST_F(ControlBlocksTest, While)
620620 builder.addObscuredInput (" CONDITION" , block);
621621 builder.build ();
622622
623- conditionReturnValue = true ;
623+ setConditionReturnValue ( true ) ;
624624 m_engine->start ();
625625
626626 testing::internal::CaptureStdout ();
627627 m_engine->step ();
628628 ASSERT_EQ (testing::internal::GetCapturedStdout ().substr (0 , 10 ), " test\n test\n " );
629629 ASSERT_TRUE (m_engine->isRunning ());
630630
631- conditionReturnValue = false ;
631+ setConditionReturnValue ( false ) ;
632632 m_engine->step ();
633633 m_engine->step ();
634634 ASSERT_FALSE (m_engine->isRunning ());
0 commit comments