From 8e1bdfdca2ad2157fd74cedc1a6768a1b1c0849d Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周日, 09 2月 2020 04:48:55 +0800
Subject: [PATCH] identifiers next work

---
 test/library/Os_Linux_test.cpp |   27 ---------------------------
 1 files changed, 0 insertions(+), 27 deletions(-)

diff --git a/test/library/Os_Linux_test.cpp b/test/library/Os_Linux_test.cpp
index 6d272bf..21e94e0 100644
--- a/test/library/Os_Linux_test.cpp
+++ b/test/library/Os_Linux_test.cpp
@@ -38,33 +38,6 @@
 	}
 }
 
-BOOST_AUTO_TEST_CASE(read_network_adapters) {
-	OsAdapterInfo *adapter_info = NULL;
-	size_t adapter_info_size = 0;
-	FUNCTION_RETURN result = getAdapterInfos(NULL, &adapter_info_size);
-	BOOST_CHECK_EQUAL(result, FUNC_RET_OK);
-	BOOST_CHECK_GT(adapter_info_size, 0);
-	adapter_info = (OsAdapterInfo *)malloc(sizeof(OsAdapterInfo) * adapter_info_size);
-	result = getAdapterInfos(adapter_info, &adapter_info_size);
-	BOOST_CHECK_EQUAL(result, FUNC_RET_OK);
-	for (size_t i = 0; i < adapter_info_size; i++) {
-		cout << "Interface found: " << string(adapter_info[i].description) << endl;
-		BOOST_CHECK_GT(strlen(adapter_info[i].description), 0);
-		// lo mac address is always 0 but it has ip
-		// other interfaces may not be connected
-		if (string(adapter_info[i].description) == "lo") {
-			BOOST_CHECK_NE(adapter_info[i].ipv4_address[0], 0);
-		} else {
-			bool mac_is_0 = true;
-			for (int j = 0; j < 6; j++) {
-				mac_is_0 = mac_is_0 && (adapter_info[i].mac_address[j] == 0);
-			}
-			BOOST_CHECK_MESSAGE(!mac_is_0, "Mac address for interface " << adapter_info[i].description << " is 0");
-		}
-	}
-	free(adapter_info);
-}
-
 // To test if virtualization is detected correctly define an env variable VIRT_ENV
 // otherwise the test is skipped
 BOOST_AUTO_TEST_CASE(test_virtualization) {

--
Gitblit v1.9.1