From fbc42bf569ee7a12a9813f1383b5471533bbef14 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Thu, 11 Aug 2022 15:09:17 +0200 Subject: [PATCH] Sim QA: Display the original netlist on failure --- .../eeschema/test_netlist_exporter_spice.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/qa/unittests/eeschema/test_netlist_exporter_spice.cpp b/qa/unittests/eeschema/test_netlist_exporter_spice.cpp index d7edd29a9a..30a9f6302a 100644 --- a/qa/unittests/eeschema/test_netlist_exporter_spice.cpp +++ b/qa/unittests/eeschema/test_netlist_exporter_spice.cpp @@ -123,12 +123,20 @@ public: // We need to make sure that the number of points always the same. ngspice->Command( "linearize" ); - // Display all vectors in case we need them for debugging. + + // Debug info. + + // Display all vectors. ngspice->Command( "echo Available Vectors" ); ngspice->Command( "echo -----------------" ); ngspice->Command( "display" ); - // Display an expanded netlist in case we need it for debugging. + // Display the original netlist. + *m_log << "Original Netlist\n"; + *m_log << "----------------\n"; + *m_log << netlist << "\n"; + + // Display the expanded netlist. ngspice->Command( "echo Expanded Netlist" ); ngspice->Command( "echo ----------------" ); ngspice->Command( "listing runnable" );