diff options
author | Johannes Schanda <schanda@itestra.de> | 2013-08-23 15:36:18 +0200 |
---|---|---|
committer | Johannes Schanda <schanda@itestra.de> | 2013-08-23 15:36:18 +0200 |
commit | 614c604041783d03d7d994c66dfa389e3257c08c (patch) | |
tree | 05bfdc8f3bf9470f292e294aef67663093d3e0fc | |
parent | f31bc4a63f1e84fb9aaf0cab006ab55e3fbc5be7 (diff) | |
download | genivi-common-api-dbus-runtime-614c604041783d03d7d994c66dfa389e3257c08c.tar.gz |
Works correctly on GCC 4.8
-rw-r--r-- | src/test/DBusVariantOutputStreamTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/DBusVariantOutputStreamTest.cpp b/src/test/DBusVariantOutputStreamTest.cpp index 2750abc..47789e9 100644 --- a/src/test/DBusVariantOutputStreamTest.cpp +++ b/src/test/DBusVariantOutputStreamTest.cpp @@ -229,7 +229,9 @@ TEST_F(VariantOutputStreamTest, CanWriteStructInVariant) { inputStream >> outVariant; EXPECT_TRUE(outVariant.isType<MyStruct>()); - EXPECT_EQ(inVariant.get<MyStruct>(), outVariant.get<MyStruct>()); + MyStruct iStr = inVariant.get<MyStruct>(); + MyStruct oStr = outVariant.get<MyStruct>(); + EXPECT_EQ(iStr, oStr); EXPECT_TRUE(inVariant == outVariant); } |