From f4e683fc6bd6ac76f9979f49d737588b6ddf16b0 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 14 11月 2020 22:13:13 +0800 Subject: [PATCH] windows smbios --- test/library/os/network_test.cpp | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/test/library/os/network_test.cpp b/test/library/os/network_test.cpp index 49705c6..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,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