Convert test_pioc.cpp to C++ style targeting jayeshkrishna/async_thread_support#678
Draft
Convert test_pioc.cpp to C++ style targeting jayeshkrishna/async_thread_support#678
Conversation
… remove test_pioc.c Co-authored-by: jayeshkrishna <7873429+jayeshkrishna@users.noreply.github.com>
Contributor
|
@copilot : Work on branch jayeshkrishna/async_thread_support instead of master |
Copilot
AI
changed the title
[WIP] Convert test_pioc.cpp to match test_spio_rearr_contig.cpp style
Convert test_pioc.c to C++ style and add test_spio_rearr_contig.cpp
Mar 11, 2026
… update api usage, remove test_spio_rearr_contig.cpp Co-authored-by: jayeshkrishna <7873429+jayeshkrishna@users.noreply.github.com>
Contributor
Author
Updated in commit
|
Copilot
AI
changed the title
Convert test_pioc.c to C++ style and add test_spio_rearr_contig.cpp
Convert test_pioc.cpp to C++ style targeting jayeshkrishna/async_thread_support
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_pioc.cppused the legacy C test pattern (run_test_main,pio_test_init2,test_shared.cppinfrastructure). This converts it to the modern C++ test style used by other unit tests in the suite, targeting thejayeshkrishna/async_thread_supportbranch.Changes
test_pioc.cpp: Style conversion to matchtest_spio_rearr_contig.cpp(the existing style reference inasync_thread_support):LOG_RANK0macro,static const int FAIL = -1test_driver(MPI_Comm, wrank, wsz, *num_errors)withtry/catchwrapping of major test phasesmain()directly initializes MPI (no morerun_test_main)run_tests_no_async()andrun_tests_async()fromtest_shared.cpp, removing that dependencyasync_thread_support-specific API changes: updatedmalloc_iodescsignature (extra arg),free(iodesc->map),free(iodesc->dimlen)float test_data[arraylen], uncastedmallocCMakeLists.txt: Updatestest_piocto droptest_shared.cppdependency (based onasync_thread_support's CMakeLists).Style pattern (new tests follow this structure)
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.