diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-20 16:01:22 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-20 16:01:22 +0200 |
commit | 1a8a33ae9b39567e2a2cc399f13cebecb5fa2dea (patch) | |
tree | e771f59d3053bd8058b67b8c26df895fc182d6b7 /test/lib | |
parent | 4c0354fe0fc2f42ec35c57cc69444a825e5c5386 (diff) | |
download | lvm2-1a8a33ae9b39567e2a2cc399f13cebecb5fa2dea.tar.gz |
tests: a bit more fancy way to initialized struct
Older g++ is not smart enough to figure this out, so add a bit more push.
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/brick-shelltest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/brick-shelltest.h b/test/lib/brick-shelltest.h index b3b62a308..af2810521 100644 --- a/test/lib/brick-shelltest.h +++ b/test/lib/brick-shelltest.h @@ -988,7 +988,7 @@ struct TestCase { TestCase( Journal &j, Options opt, std::string path, std::string _name, std::string _flavour ) : child( path ), name( _name ), flavour( _flavour ), - iobuf( NULL ), usage( { 0 } ), status( 0 ), timeout( false ), + iobuf( NULL ), usage( (struct rusage) { { 0 } } ), status( 0 ), timeout( false ), pid( 0 ), start( 0 ), end( 0 ), silent_start( 0 ), last_update( 0 ), last_heartbeat( 0 ), options( opt ), journal( &j ) { |