From 8d405b265285c368df2e9cf1c14acee7532e0ee7 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: ćšć, 29 5æ 2025 18:14:38 +0800 Subject: [PATCH] Merge branch 'develop' of http://139.9.88.116:3000/r/module/open-license-manager into develop --- 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