[Chapel Merge] Add tests and futures motivated by HPO's use of these features

Branch: refs/heads/main
Revision: 11611be016fff24bfcfdaf4adc22e4238b4a7e77
Author: lydia-duncan
Link: Add tests and futures motivated by HPO's use of these features by lydia-duncan · Pull Request #24896 · chapel-lang/chapel · GitHub
Log Message:
Add tests and futures motivated by HPO's use of these features (#24896)

[new tests, not reviewed]

Covers:

  • taking and returning arrays of c_ptrConst(c_char) in exported
    functions
  • accepting arguments of arrays of strings in exported functions
  • throwing from hash functions in script-like .chpl files
  • throwing from hash functions in script-like .chpl files due to calling
    functions that throw
  • calling functions with ref intent for the this argument from hash
    functions
  • explicitly declaring the hash function to have ref intent for its
    this argument
  • throwing from hash functions in explicit modules

Checked a fresh checkout of the hash tests behaved as expected. The
Python interop tests worked locally

Compare: Comparing 9688573c09bc94e9159f209941ce26d2f06bace4...db581e52f9bbdbfa5f752950b6db95e0c5419282 · chapel-lang/chapel · GitHub

Diff:
A test/hash/throwingHash.chpl
A test/hash/throwingHash.good
A test/hash/throwingHashCallsRef.bad
A test/hash/throwingHashCallsRef.chpl
A test/hash/throwingHashCallsRef.future
A test/hash/throwingHashCallsRef.good
A test/hash/throwingHashInModule.bad
A test/hash/throwingHashInModule.chpl
A test/hash/throwingHashInModule.future
A test/hash/throwingHashInModule.good
A test/hash/throwingHashIndirect.chpl
A test/hash/throwingHashIndirect.good
A test/hash/throwingHashRef.bad
A test/hash/throwingHashRef.chpl
A test/hash/throwingHashRef.future
A test/hash/throwingHashRef.good
A test/interop/python/cptrConstCharArrays.bad
A test/interop/python/cptrConstCharArrays.chpl
A test/interop/python/cptrConstCharArrays.future
A test/interop/python/cptrConstCharArrays.good
A test/interop/python/cptrConstCharArrays.noexec
A test/interop/python/cptrConstCharArrays.prediff
A test/interop/python/stringArrayArg.chpl
A test/interop/python/stringArrayArg.future
A test/interop/python/stringArrayArg.good
A test/interop/python/stringArrayArg.noexec
A test/interop/python/stringArrayArg.prediff
A test/interop/python/use_cptrConstCharArrays.py
A test/interop/python/use_stringArrayArg.py
https://github.com/chapel-lang/chapel/pull/24896.diff