[Chapel Merge] Adjust some tests to pass on macOS.

Branch: refs/heads/main
Revision: d8d7021
Author: gbtitus
Link: Adjust some tests to pass on macOS. by gbtitus · Pull Request #19687 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #19687 from gbtitus/mac-testing

Adjust some tests to pass on macOS.

[Not reviewed.]

I ran into these while testing an unrelated change. Here, adjust several
tests so that they pass on macOS.

Rename extern/ferguson/ctypes.chpl to t-ctypes.chpl, because the
case-insensitive nature of the macOS filesystem meant that this file was
being confused as the intended source of the CTypes module for use
statements in this directory.

In test/llvm/alignment/check-align16.prediff, remove the sed '-s'
option. macOS's sed doesn't like it, and it was spurious anyway.
Also, change check-align16-field1.chpl to use the same size-specific
type specifiers in its printf() format string as check-align16.chpl
already does. Otherwise, the target compiler gripes about a size
mismatch between the format specifier and the thing to be printed.

Finally, in parallel/taskPool/figueroa/ManyThreads.prediff, change from
a '+' operator to a '*' operator to get around a difference between macOS
and Linux sed.

Modified Files:
A test/extern/ferguson/t-ctypes.chpl

A test/extern/ferguson/t-ctypes.good
R test/extern/ferguson/ctypes.chpl
R test/extern/ferguson/ctypes.good
M test/llvm/alignment/check-align16-field1.chpl
M test/llvm/alignment/check-align16-field1.prediff
M test/llvm/alignment/check-align16.prediff
M test/parallel/taskPool/figueroa/ManyThreads.prediff

Compare: https://github.com/chapel-lang/chapel/compare/d205c979a37e...d8d70210e073