https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121429
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jerry DeLisle <[email protected]>: https://gcc.gnu.org/g:be90cfa22cb4e3cea7ffb4ca429829381369a8d2 commit r16-7737-gbe90cfa22cb4e3cea7ffb4ca429829381369a8d2 Author: Jerry DeLisle <[email protected]> Date: Sat Feb 14 15:46:44 2026 -0800 Fortran: Adjust test to work with multiple images. The testcase would fail occasionally with multiple images because the use of acquired_lock is a non-blocking LOCK. Only UNLOCK this if the LOCK was acquired. Keep track of the loop count and bail out if the limit is reached. During testing it was observed that the loop count could go as high as 33 times depending on system conditions, running the test outside the testsuite 1000's of times. PR fortran/121429 gcc/testsuite/ChangeLog: * gfortran.dg/coarray/lock_1.f90: Updated.
