Branch: refs/heads/main
Revision: 0ad286b7577e34dd62deaf69ebf827f1430a562e
Author: bradcray
Link: Fix a few testing errors with promotedSizeMismatch by bradcray · Pull Request #26622 · chapel-lang/chapel · GitHub
Log Message:
Fix a few testing errors with promotedSizeMismatch (#26622)
[trivial, not reviewed]
First, I made the classic mistake of failing to think about --fast
testing, which turns off the bounds checking this test is looking for.
Here, I add --checks to its .compopts file to try and avoid this going
forward.
More subtly, it didn't occur to me that the test has a race since the
leader will fire off multiple follower tasks, giving the potential to
have the size mismatch in dimension 0 or 1 to appear first. Here, I
side-stepped that by only making a single dimension mismatch in size.
Diff:
M test/arrays/errors/promotedSizeMismatch.chpl
A test/arrays/errors/promotedSizeMismatch.compopts
https://github.com/chapel-lang/chapel/pull/26622.diff