Skip to content

Update capstone test utils to use pcu::PCU object #469

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jan 19, 2025
Merged

Conversation

bobpaw
Copy link
Collaborator

@bobpaw bobpaw commented Jan 18, 2025

Update capstone test utils to use pcu::PCU object

This PR updates Capstone tests to use the new pcu::PCU object. Some of the tests were missed by the original PR #433 because they were moved from capstone_clis/ into test/. I chose to use new/delete instead of the static object scoping because it allowed for fine-grained explicit control i.e. dropping new pcu::PCU(MPI_COMM_WORLD) in place of MPI_Comm_Init() and delete PCUObj in place of MPI_Comm_Free.

  • test/capCheckParam.cc(main): replace PCU_Comm_Init with new pcu::PCU object.
  • test/capGeomTest.cc(main): replace static object and scoping with dynamic new/delete (explicit scoping).
  • update calls to use pointer instead of address-of static object.
  • test/cap_closestPoint.cc(main): replace PCU_Comm_Init with new pcu::PCU object.
  • test/cap_inClosureOf.cc(main): use new pcu::PCU object.

- test/capCheckParam.cc(main): replace PCU_Comm_Init with new pcu::PCU
  object.
- test/capGeomTest.cc(main): replace static object and scoping with
  dynamic new/delete (explicit scoping).
- update calls to use pointer instead of address-of static object.
- test/cap_closestPoint.cc(main): replace PCU_Comm_Init with new
  pcu::PCU object.
- test/cap_inClosureOf.cc(main): use new pcu::PCU object.

Signed-off-by: Aiden Woodruff <woodra@rpi.edu>
@bobpaw bobpaw marked this pull request as ready for review January 18, 2025 21:39
Copy link
Contributor

@cwsmith cwsmith left a comment

Choose a reason for hiding this comment

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

Thank you.

The hosted github actions tests appear to have imploded...

@cwsmith
Copy link
Contributor

cwsmith commented Jan 19, 2025

/runtests

Copy link

Build Log
Simmetrix Test Result: success
Simmetrix + CGNS Test Result: success

@cwsmith cwsmith merged commit f10ef9b into develop Jan 19, 2025
0 of 4 checks passed
@cwsmith cwsmith deleted the apw/cap_pcu_obj branch January 19, 2025 17:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants