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

Add tests for pool from pointer to poolFixtures.hpp #1136

Conversation

ldorau
Copy link
Contributor

@ldorau ldorau commented Feb 25, 2025

Description

Add tests for pool from pointer to poolFixtures.hpp.

Depends on: #1134

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly

@ldorau ldorau mentioned this pull request Feb 25, 2025
3 tasks
@ldorau ldorau force-pushed the Add_tests_for_pool_from_pointer_to_poolFixtures.hpp branch from eb70506 to fc474d5 Compare February 25, 2025 14:37
@vinser52
Copy link
Contributor

Should we create a separate PR with the test (e.g. the last commit in this PR) and merge it. As I understand the test itself is generic and can be used with different pools/providers.

@ldorau ldorau force-pushed the Add_tests_for_pool_from_pointer_to_poolFixtures.hpp branch from fc474d5 to 44b393d Compare February 25, 2025 16:39

int ret =
critnib_insert(hTracker->alloc_segments_map, (uintptr_t)ptr, value, 0);
umf_result_t umf_result = UMF_RESULT_ERROR_UNKNOWN;
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this declaration to be sticked to this if:

    if (ret != EEXIST) {

Similarly to the int ret = ...

@ldorau
Copy link
Contributor Author

ldorau commented Feb 27, 2025

Should we create a separate PR with the test (e.g. the last commit in this PR) and merge it. As I understand the test itself is generic and can be used with different pools/providers.

This PR is incorporated into #1143

@ldorau ldorau closed this Feb 27, 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