From de5002941fb2f65eda8f9603e4723f95e11fde97 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周日, 08 3月 2020 22:53:03 +0800 Subject: [PATCH] fix tests --- src/library/os/execution_environment.hpp | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/library/os/execution_environment.hpp b/src/library/os/execution_environment.hpp index bc503fb..db36205 100644 --- a/src/library/os/execution_environment.hpp +++ b/src/library/os/execution_environment.hpp @@ -13,6 +13,12 @@ namespace license { namespace os { +/* + * windows bios sometimes reports vm names add execution environment detection from bios +const char *vmVendors[] = { + "VMware", "Microsoft Corporation", "Virtual Machine", "innotek GmbH", "PowerVM", "Bochs", "KVM"}; +*/ + typedef enum { NONE, CONTAINER, VM } VIRTUALIZATION; typedef enum { @@ -35,8 +41,9 @@ std::string sys_vendor; std::string bios_vendor; std::string bios_description; - //detect if it's a kind of container technology (docker or lxc) + // detect if it's a kind of container technology (docker or lxc) bool is_container() const; + public: ExecutionEnvironment(); ~ExecutionEnvironment(){}; -- Gitblit v1.9.1