From 2d75b7944990f1ce80b3847be1f8dff09df82dad Mon Sep 17 00:00:00 2001 From: Victor Toofic <toofics@users.noreply.github.com> Date: ćšć, 20 5æ 2021 00:04:08 +0800 Subject: [PATCH] - use CMake PROJECT_DESCRIPTION var instead to be able to build with cmake < 3.8 (#118) --- test/library/LicenseReader_test.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/library/LicenseReader_test.cpp b/test/library/LicenseReader_test.cpp index 57ed1dc..f573874 100644 --- a/test/library/LicenseReader_test.cpp +++ b/test/library/LicenseReader_test.cpp @@ -75,7 +75,7 @@ * Test the error code if the license default environment variable isn't specified */ BOOST_AUTO_TEST_CASE(env_var_not_defined) { - UNSETENV(LICENSE_LOCATION_ENV_VAR); + UNSETENV(LCC_LICENSE_LOCATION_ENV_VAR); locate::LocatorFactory::find_license_near_module(false); locate::LocatorFactory::find_license_with_env_var(true); LicenseReader licenseReader(nullptr); @@ -94,7 +94,7 @@ */ BOOST_AUTO_TEST_CASE(env_var_point_to_wrong_file) { const char *environment_variable_value = PROJECT_TEST_SRC_DIR "/this/file/doesnt/exist"; - SETENV(LICENSE_LOCATION_ENV_VAR, environment_variable_value) + SETENV(LCC_LICENSE_LOCATION_ENV_VAR, environment_variable_value) locate::LocatorFactory::find_license_near_module(false); locate::LocatorFactory::find_license_with_env_var(true); @@ -106,7 +106,7 @@ BOOST_CHECK_EQUAL(0, licenseInfos.size()); BOOST_ASSERT(registry.getLastFailure() != NULL); BOOST_CHECK_EQUAL(LICENSE_FILE_NOT_FOUND, registry.getLastFailure()->event_type); - UNSETENV(LICENSE_LOCATION_ENV_VAR); + UNSETENV(LCC_LICENSE_LOCATION_ENV_VAR); } } // namespace test } // namespace license -- Gitblit v1.9.1