From f1d283e941680a97d74a2fb7f6bcdd9490efc394 Mon Sep 17 00:00:00 2001
From: nancy.liao <huihui.liao@greentest.com.cn>
Date: 周四, 29 5月 2025 18:14:27 +0800
Subject: [PATCH] 根据具体需求 修改了一个强制性的版本匹配,否则license返回结果不正确

---
 test/functional/crack_test.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/test/functional/crack_test.cpp b/test/functional/crack_test.cpp
index bb437d7..31fa782 100644
--- a/test/functional/crack_test.cpp
+++ b/test/functional/crack_test.cpp
@@ -1,3 +1,4 @@
+
 #define BOOST_TEST_MODULE standard_license_test
 
 #include <boost/test/unit_test.hpp>
@@ -9,7 +10,7 @@
 #include <iostream>
 #include "../../src/library/ini/SimpleIni.h"
 #include "generate-license.h"
-#include "../../src/library/base/FileUtils.hpp"
+#include "../../src/library/base/file_utils.hpp"
 
 namespace license {
 namespace test {
@@ -17,6 +18,7 @@
 using namespace license;
 using namespace std;
 
+//娴嬭瘯涓�涓�氱敤鐨勮鍙瘉
 /**
  * Test a generic license, passing a bad license number trough the api.
  * see projects/DEFAULT/include/licensecc/DEFAULT/licensecc_properties.h (magic should be 0)
@@ -30,7 +32,7 @@
 	std::copy(licLocation.begin(), licLocation.end(), location.licenseData);
 	// magic should be 0 for this build...
 	CallerInformations callInfo{{0}, {0}, 42};
-	const EVENT_TYPE result = acquire_license(&callInfo, &location, &license);
+	const LCC_EVENT_TYPE result = acquire_license(&callInfo, &location, &license);
 	BOOST_CHECK_EQUAL(result, LICENSE_CORRUPTED);
 }
 

--
Gitblit v1.9.1