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

Improve gtest discovery #169

Merged
merged 2 commits into from
Jan 15, 2025
Merged

Improve gtest discovery #169

merged 2 commits into from
Jan 15, 2025

Conversation

r1viollet
Copy link
Collaborator

What does this PR do?:

Fix gtest discovery

Motivation:

I could not find gtest with a basic ubuntu install.

Additional Notes:

There might be other issues in how the build behaves when gtest is not found.
This lead to very strange errors in the rest of the build.

How to test the change?:

Scratch install on ubuntu.

For Datadog employees:

  • [] If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA: [JIRA-XXXX]

Unsure? Have a question? Request a review!

Improve gtest discovery to include common locations
@r1viollet r1viollet force-pushed the r1viollet/improve_gtest_discovery branch from 4c7ec26 to 03ec895 Compare January 14, 2025 17:27
Copy link

github-actions bot commented Jan 14, 2025

🔧 Report generated by pr-comment-scanbuild

Scan-Build Report

User:runner@fv-az1068-509
Working Directory:/home/runner/work/java-profiler/java-profiler/ddprof-lib/src/test/make
Command Line:make -j4 clean all
Clang Version:Ubuntu clang version 18.1.3 (1ubuntu1)
Date:Wed Jan 15 09:41:27 2025

Bug Summary

Bug TypeQuantityDisplay?
All Bugs5
Logic error
Dereference of null pointer3
Suspicious operation
Bitwise shift1
Unused code
Dead nested assignment1

Reports

Bug Group Bug Type ▾ File Function/Method Line Path Length
Suspicious operationBitwise shiftvmStructs.cppfind87216
Unused codeDead nested assignmentvmStructs.cppcheckNativeBinding9771
Logic errorDereference of null pointersafeAccess.hload3318
Logic errorDereference of null pointersymbols_linux.hElfParser12928
Logic errorDereference of null pointerflightRecorder.cppflush15118

Copy link

github-actions bot commented Jan 14, 2025

🔧 Report generated by pr-comment-cppcheck

CppCheck Report

Warnings (7)

Style Violations (403)

@MattAlp MattAlp self-assigned this Jan 14, 2025
Copy link
Contributor

@MattAlp MattAlp left a comment

Choose a reason for hiding this comment

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

LGTM. Let's wait for #170 to ship and then rebase on that, in case the Gradle changes reveal anything else about our dependencies & toolchains.

@r1viollet r1viollet merged commit 4f4d70a into main Jan 15, 2025
44 checks passed
@github-actions github-actions bot added this to the 1.19.0 milestone Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants