From bea6af081607f1fe7c5b8ffa34bd74f65fd2d0e3 Mon Sep 17 00:00:00 2001 From: Dariusz Michaluk Date: Thu, 27 Aug 2015 17:32:21 +0200 Subject: [PATCH] Fix GetNetdevAttrs test [Feature] N/A [Cause] N/A [Solution] N/A [Verification] Build, install, run tests Change-Id: I75ba46b0a923622e07d857535496615ac1708ce3 --- tests/unit_tests/server/ut-zone.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit_tests/server/ut-zone.cpp b/tests/unit_tests/server/ut-zone.cpp index 0072d74..aefb29a 100644 --- a/tests/unit_tests/server/ut-zone.cpp +++ b/tests/unit_tests/server/ut-zone.cpp @@ -294,6 +294,7 @@ BOOST_AUTO_TEST_CASE(GetNetdevAttrs) bool gotMtu = false; bool gotFlags = false; bool gotType = false; + bool gotLink = false; for (auto& attr : attrs) { if (std::get<0>(attr) == "mtu") { BOOST_CHECK(!gotMtu); @@ -306,6 +307,9 @@ BOOST_AUTO_TEST_CASE(GetNetdevAttrs) BOOST_CHECK(!gotType); BOOST_CHECK_EQUAL(1 /*IFF_802_1Q_VLAN */, stol(std::get<1>(attr))); gotType = true; + } else if (std::get<0>(attr) == "link") { + BOOST_CHECK(!gotLink); + gotLink = true; } else { BOOST_CHECK_MESSAGE(false, "Got unexpected option " + std::get<0>(attr)); } -- 2.7.4