gcontini
2020-02-10 205c71575c272a685011c641a33d26cf66cf60a0
fix unit test with old versions of boost
4个文件已修改
9 ■■■■■ 已修改文件
src/library/os/linux/execution_environment.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/os/os.h 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/pc_identifier/ethernet.cpp 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
test/library/os/network_test.cpp 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/library/os/linux/execution_environment.cpp
@@ -94,7 +94,7 @@
    return result;
}
bool ExecutionEnvironment::is_cloud() { return getCloudProvider() == NONE; }
bool ExecutionEnvironment::is_cloud() { return getCloudProvider() != ON_PREMISE; }
bool ExecutionEnvironment::is_docker() { return (checkContainerProc() == 1 || checkSystemdContainer() == 1); }
src/library/os/os.h
@@ -35,7 +35,6 @@
FUNCTION_RETURN getDiskInfos(DiskInfo* diskInfos, size_t* disk_info_size);
FUNCTION_RETURN getUserHomePath(char[MAX_PATH]);
FUNCTION_RETURN getModuleName(char buffer[MAX_PATH]);
// FUNCTION_RETURN getCpuId(unsigned char identifier[6]);
FUNCTION_RETURN getMachineName(unsigned char identifier[6]);
/**
 * Get an identifier of the machine in an os specific way.
src/library/pc_identifier/ethernet.cpp
@@ -9,8 +9,8 @@
#include <array>
#include <vector>
#include "../../../include/licensecc/datatypes.h"
#include "../../../projects/DEFAULT/include/licensecc/DEFAULT/licensecc_properties.h"
#include <licensecc/datatypes.h>
#include <licensecc_properties.h>
#include "../base/base.h"
#include "../os/network.hpp"
#include "pc_identifier.hpp"
test/library/os/network_test.cpp
@@ -23,7 +23,7 @@
    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);