From 85d97f05f6f8e4c1d73cd2bb096806839d16f3b0 Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周六, 31 10月 2020 10:27:16 +0800
Subject: [PATCH] Pc identifier Mac address issues #108 & #107

---
 test/library/os/network_test.cpp |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/test/library/os/network_test.cpp b/test/library/os/network_test.cpp
index b917914..ac599d8 100644
--- a/test/library/os/network_test.cpp
+++ b/test/library/os/network_test.cpp
@@ -5,9 +5,9 @@
 
 #include <licensecc_properties.h>
 #include <licensecc_properties_test.h>
-#include "../../src/library/base/StringUtils.h"
-#include "../../src/library/os/network.hpp"
-#include "../../src/library/os/execution_environment.hpp"
+#include "../../../src/library/base/string_utils.h"
+#include "../../../src/library/os/network.hpp"
+#include "../../../src/library/os/execution_environment.hpp"
 
 namespace license {
 namespace os {
@@ -18,15 +18,16 @@
 
 BOOST_AUTO_TEST_CASE(read_network_adapters) {
 	std::vector<license::os::OsAdapterInfo> adapters;
-	// we can suppose every test environment  other than docker has at least one network interface (it's hard to
-	// download this source code)
+	// we can suppose every test environment other than docker has at least
+	// one network interface
 	FUNCTION_RETURN result = getAdapterInfos(adapters);
 	ExecutionEnvironment exec_env;
 	if (result != FUNC_RET_OK && exec_env.is_docker()) {
-		BOOST_TEST_INFO("detected docker environment, not having network interfaces is normal here");
+		BOOST_TEST_MESSAGE("detected docker environment, not having network interfaces is normal here");
 		return;
 	}
 	BOOST_CHECK_EQUAL(result, FUNC_RET_OK);
+	BOOST_CHECK_GT(adapters.size(),0);
 	for (auto& it : adapters) {
 		cout << "Interface found: " << string(it.description) << endl;
 		BOOST_CHECK_GT(strlen(it.description), 0);

--
Gitblit v1.9.1