Sim QA: Abort test (not only warn) if Ngspice ptr is null

This commit is contained in:
Mikolaj Wielgus 2022-08-08 17:18:12 +02:00
parent f6771ed789
commit 5a51e38d34
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ public:
{ {
// Our simulator is actually Ngspice. // Our simulator is actually Ngspice.
NGSPICE* ngspice = dynamic_cast<NGSPICE*>( m_simulator.get() ); NGSPICE* ngspice = dynamic_cast<NGSPICE*>( m_simulator.get() );
BOOST_TEST_CHECK( ngspice ); BOOST_REQUIRE( ngspice );
ngspice->SetReporter( m_reporter.get() ); ngspice->SetReporter( m_reporter.get() );
@ -158,7 +158,7 @@ public:
maxError = aMaxRelError; maxError = aMaxRelError;
} }
BOOST_REQUIRE_LE( abs( yVector[i] - refValue ), maxError ); BOOST_CHECK_LE( abs( yVector[i] - refValue ), maxError );
} }
} }
} }