gcontini
2021-05-20 f864724d3758da9df8583df00b202d1f578e42a3
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);