fix unit test with old versions of boost
| | |
| | | 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); } |
| | | |
| | |
| | | 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. |
| | |
| | | #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" |
| | |
| | | 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); |