From e4073eaf3462bd925835cf5658a8f481ca93664b Mon Sep 17 00:00:00 2001
From: gcontini <contini.mailing@gmail.com>
Date: 周日, 13 10月 2019 16:17:06 +0800
Subject: [PATCH] fix windows tests

---
 test/library/LicenseLocator_test.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/library/LicenseLocator_test.cpp b/test/library/LicenseLocator_test.cpp
index 1fed1ee..512ffb1 100644
--- a/test/library/LicenseLocator_test.cpp
+++ b/test/library/LicenseLocator_test.cpp
@@ -1,4 +1,4 @@
-#define BOOST_TEST_MODULE "license_locator_test"
+#define BOOST_TEST_MODULE "test_license_locator"
 
 #include <iostream>
 #include <iterator>
@@ -191,7 +191,7 @@
 #ifdef _WIN32
 	_putenv_s(LICENSE_LOCATION_ENV_VAR, "");
 #else
-	setenv(LICENSE_LOCATION_ENV_VAR, environment_variable_value, 1);
+	unsetenv(LICENSE_LOCATION_ENV_VAR);
 #endif
 	license::EventRegistry registry;
 	EnvironmentVarLocation environmentVarLocation;

--
Gitblit v1.9.1