From d8e52aed874924946f91400949fc769e2e3a47b0 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 8 Apr 2024 14:31:22 +0200 Subject: [PATCH] tests: use non inlined copy constructor gcc would like to see code without trying to inline large copy constructor used for std::vector --- test/lib/brick-shelltest.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/lib/brick-shelltest.h b/test/lib/brick-shelltest.h index 668421610..400612564 100644 --- a/test/lib/brick-shelltest.h +++ b/test/lib/brick-shelltest.h @@ -901,6 +901,8 @@ struct TestCase { Journal *journal; + TestCase(const TestCase &t); // copy + std::string pretty() { if ( options.batch ) return flavour + ": " + name; @@ -1153,6 +1155,15 @@ TestCase::TestCase( Journal &j, const Options &opt, const std::string &path, con { // no inline } +TestCase::TestCase( const TestCase &t ) : + child( t.child ), name( t.name ), flavour( t.flavour), + io( t.io ), iobuf( t.iobuf ), usage( t.usage ), status( t.status ), timeout( t.timeout ), + pid( t.pid ), start( t.start), silent_start( t.silent_start ), + last_update( t.last_update ), last_heartbeat( t.last_heartbeat ), + options( t.options ), journal( t.journal ) +{ // no inline +} + TestCase::~TestCase() { // no inline }