From 5a8a12d7a2c69610cd7a9a00ed1b3579b750a914 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 16 11月 2019 21:39:10 +0800 Subject: [PATCH] issue #42 #38 \n review build system, \n issue #38 added clang format --- test/functional/date_test.cpp | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/functional/date_test.cpp b/test/functional/date_test.cpp index b07216b..44a9911 100644 --- a/test/functional/date_test.cpp +++ b/test/functional/date_test.cpp @@ -24,10 +24,9 @@ /* */ LicenseInfo license; LicenseLocation licenseLocation; - licenseLocation.openFileNearModule = false; licenseLocation.licenseFileLocation = licLocation.c_str(); - licenseLocation.environmentVariableName = ""; - const EVENT_TYPE result = acquire_license("TEST", licenseLocation, + licenseLocation.licenseData = ""; + const EVENT_TYPE result = acquire_license("TEST", &licenseLocation, &license); BOOST_CHECK_EQUAL(result, LICENSE_OK); BOOST_CHECK_EQUAL(license.has_expiry, true); @@ -44,10 +43,10 @@ /* */ LicenseInfo license; LicenseLocation licenseLocation; - licenseLocation.openFileNearModule = false; licenseLocation.licenseFileLocation = licLocation.c_str(); - licenseLocation.environmentVariableName = ""; - const EVENT_TYPE result = acquire_license("TEST", licenseLocation, + licenseLocation.licenseData = nullptr; + BOOST_TEST_MESSAGE("before acquire license"); + const EVENT_TYPE result = acquire_license("TEST", &licenseLocation, &license); BOOST_CHECK_EQUAL(result, PRODUCT_EXPIRED); BOOST_CHECK_EQUAL(license.has_expiry, true); -- Gitblit v1.9.1