Branch: refs/heads/main
Revision: 7e67ea5405b1be99f32a6a23a525cf32c7f480f4
Author: dlongnecke-cray
Link: dlopen: Add a test that dumps program data fields on each locale by dlongnecke-cray · Pull Request #28776 · chapel-lang/chapel · GitHub
Log Message:
dlopen: Add a test that dumps program data fields on each locale (#28776)
This PR adds a test which manually sets up Chapel program data fields on
each locale and then runs a .prediff to verify that they look correct.
This test is a prerequisite towards having the Chapel executable
automatically set up the program data itself on startup.
To help with writing the test, add a new runtime function that dumps the
data fields in a chpl_rt_prginfo.
While here, I realized that the types of some line/file info formals in
the callbacks were incorrect. Fix the types and adjust the formal names.
TESTING
-
standard -
COMM=gasnet
Reviewed by @jabraham17. Thanks much!
Diff:
M modules/internal/ChapelProgramRegistration.chpl
M runtime/include/chpl-prginfo-data-macro.h
M runtime/include/chpl-prginfo-detail.h
M runtime/include/chpl-prginfo.h
M runtime/src/chpl-prginfo.c
A test/dynamic-loading/DumpProgramDataEntries.chpl
A test/dynamic-loading/DumpProgramDataEntries.good
A test/dynamic-loading/DumpProgramDataEntries.numlocales
A test/dynamic-loading/DumpProgramDataEntries.prediff
https://github.com/chapel-lang/chapel/pull/28776.diff