Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: unittest fail in enterprise mode #1981

Merged
merged 3 commits into from
Dec 20, 2024
Merged

fix: unittest fail in enterprise mode #1981

merged 3 commits into from
Dec 20, 2024

Conversation

Abingcbc
Copy link
Collaborator

  1. APSARA_UNIT_TEST_MAIN设置位置不对,导致编译unittest_base的时候部分代码识别不到这个宏
  2. 注释部分enterprise跑不通的单测

@Abingcbc Abingcbc merged commit 7b0021b into main Dec 20, 2024
15 checks passed
@@ -77,6 +77,7 @@ if (UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
add_definitions(-DAPSARA_UNIT_TEST_MAIN)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果同是编译binary和ut,binary会有问题

@henryzhx8 henryzhx8 added the bug Something isn't working label Dec 25, 2024
@henryzhx8 henryzhx8 added this to the v3.0 milestone Dec 25, 2024
@henryzhx8 henryzhx8 deleted the fix-enterprise-ut branch December 28, 2024 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants