From 79b1b57045e86d9845e352c3f2aa0efbab6111a9 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 14 3月 2020 10:19:09 +0800 Subject: [PATCH] tests and improvements --- test/library/Os_Linux_test.cpp | 19 ------------------- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/test/library/Os_Linux_test.cpp b/test/library/Os_Linux_test.cpp index 5306bb0..527da44 100644 --- a/test/library/Os_Linux_test.cpp +++ b/test/library/Os_Linux_test.cpp @@ -39,24 +39,5 @@ } } -// To test if virtualization is detected correctly define an env variable VIRT_ENV -// otherwise the test is skipped -BOOST_AUTO_TEST_CASE(test_virtualization) { - const char *env = getenv("VIRT_ENV"); - os::ExecutionEnvironment exec_env; - if (env != NULL) { - if (strcmp(env, "CONTAINER") == 0) { - os::VIRTUALIZATION virt = exec_env.getVirtualization(); - BOOST_CHECK_MESSAGE(virt == VIRTUALIZATION::CONTAINER, "container detected"); - } else if (strcmp(env, "VM") == 0) { - BOOST_FAIL("check for vm not implemented"); - } else if (strcmp(env, "NONE") == 0) { - os::VIRTUALIZATION virt = exec_env.getVirtualization(); - BOOST_CHECK_EQUAL(virt, VIRTUALIZATION::NONE); - } else { - BOOST_FAIL(string("value ") + env + " not supported: VM,CONTAINER,NONE"); - } - } -} } // namespace test } // namespace license -- Gitblit v1.9.1