mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: use non inlined copy constructor
gcc would like to see code without trying to inline large copy constructor used for std::vector
This commit is contained in:
parent
6ec84993bd
commit
d8e52aed87
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user