From 5a51e38d34b2e9ed18fa0e9e714701945a33cb96 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Mon, 8 Aug 2022 17:18:12 +0200 Subject: [PATCH] Sim QA: Abort test (not only warn) if Ngspice ptr is null --- qa/unittests/eeschema/test_netlist_exporter_spice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/unittests/eeschema/test_netlist_exporter_spice.cpp b/qa/unittests/eeschema/test_netlist_exporter_spice.cpp index 6ee3d20457..2b9db2ef26 100644 --- a/qa/unittests/eeschema/test_netlist_exporter_spice.cpp +++ b/qa/unittests/eeschema/test_netlist_exporter_spice.cpp @@ -85,7 +85,7 @@ public: { // Our simulator is actually Ngspice. NGSPICE* ngspice = dynamic_cast( m_simulator.get() ); - BOOST_TEST_CHECK( ngspice ); + BOOST_REQUIRE( ngspice ); ngspice->SetReporter( m_reporter.get() ); @@ -158,7 +158,7 @@ public: maxError = aMaxRelError; } - BOOST_REQUIRE_LE( abs( yVector[i] - refValue ), maxError ); + BOOST_CHECK_LE( abs( yVector[i] - refValue ), maxError ); } } }