Skip to content

Conversation

@marcalff
Copy link
Member

@marcalff marcalff commented May 30, 2023

Fixes # (issue)

Changes

No change in production code, unit test only.

Expand the api singleton test to cover libraries:

  • never linked with the main binary at built time
  • loaded at runtime with dlopen()

The test case added is only available when building with CMake.

When building with bazel, the test case is commented, due to an existing limitation of bazel.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

@marcalff marcalff requested a review from a team May 30, 2023 12:59
@marcalff marcalff changed the title [TEST] Expand api singleton test to cover libraries loaded with dlopen(). [WIP][TEST] Expand api singleton test to cover libraries loaded with dlopen(). May 30, 2023
@codecov
Copy link

codecov bot commented May 30, 2023

Codecov Report

Merging #2164 (17b95ee) into main (42709f4) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2164   +/-   ##
=======================================
  Coverage   87.51%   87.51%           
=======================================
  Files         169      169           
  Lines        4889     4889           
=======================================
  Hits         4278     4278           
  Misses        611      611           

@marcalff marcalff changed the title [WIP][TEST] Expand api singleton test to cover libraries loaded with dlopen(). [WIP][TEST] Expand api singleton test to cover explicit dlopen(). May 30, 2023
@marcalff marcalff changed the title [WIP][TEST] Expand api singleton test to cover explicit dlopen(). [TEST] Expand api singleton test to cover explicit dlopen(). May 30, 2023
@marcalff
Copy link
Member Author

marcalff commented Jun 1, 2023

Fix works for CMake.

For bazel, blocked by bazelbuild/bazel#4218

@marcalff
Copy link
Member Author

marcalff commented Jun 5, 2023

Now ready for review.

Copy link
Member

@lalitb lalitb left a comment

Choose a reason for hiding this comment

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

LGTM. Sorry for the delay.

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