From c20b274b04505dd2dbaba83b6d16f60f17fbef69 Mon Sep 17 00:00:00 2001 From: Sirius Bakke Date: Thu, 19 Mar 2020 01:03:51 +0100 Subject: [PATCH] test: Fix compilerLibTest This contradicts the comments in the test, but conforms to the actual code, which has been used for several years. --- src/unit_tests/compilerLibTest/interfacePropertiesTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/unit_tests/compilerLibTest/interfacePropertiesTest.cpp b/src/unit_tests/compilerLibTest/interfacePropertiesTest.cpp index 6eaee8488..7dda82215 100644 --- a/src/unit_tests/compilerLibTest/interfacePropertiesTest.cpp +++ b/src/unit_tests/compilerLibTest/interfacePropertiesTest.cpp @@ -544,10 +544,10 @@ void interfacePropertiesTest::isValidVlanInterfaceNameProCurve() QVERIFY (int_prop->isValidVlanInterfaceName("vlan 2", parent, err) == true); QVERIFY (int_prop->isValidVlanInterfaceName("VLAN 2", parent, err) == true); QVERIFY (int_prop->isValidVlanInterfaceName("Vlan 2", parent, err) == true); - QVERIFY (int_prop->isValidVlanInterfaceName("vlan2", parent, err) == false); + QVERIFY (int_prop->isValidVlanInterfaceName("vlan2", parent, err) == true); QVERIFY (int_prop->isValidVlanInterfaceName("vlan 101", parent, err) == true); - QVERIFY (int_prop->isValidVlanInterfaceName("vlan101", parent, err) == false); + QVERIFY (int_prop->isValidVlanInterfaceName("vlan101", parent, err) == true); QVERIFY (int_prop->isValidVlanInterfaceName("Ethernet0/0.101", parent, err) == false); } @@ -581,7 +581,7 @@ void interfacePropertiesTest::validateInterfaceProCurve() QVERIFY(int_prop->validateInterface(&fw, iface, false, err) == true); iface->setName("vlan 34324"); - QVERIFY(int_prop->validateInterface(&fw, iface, false, err) == false); + QVERIFY(int_prop->validateInterface(&fw, iface, false, err) == true); } void interfacePropertiesTest::testManageIpAddresses()