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 | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/library/os/network_test.cpp b/test/library/os/network_test.cpp index f5a7483..ac599d8 100644 --- a/test/library/os/network_test.cpp +++ b/test/library/os/network_test.cpp @@ -5,7 +5,7 @@ #include <licensecc_properties.h> #include <licensecc_properties_test.h> -#include "../../../src/library/base/StringUtils.h" +#include "../../../src/library/base/string_utils.h" #include "../../../src/library/os/network.hpp" #include "../../../src/library/os/execution_environment.hpp" @@ -18,8 +18,8 @@ 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()) { @@ -27,6 +27,7 @@ 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