Skip to content

Commit a772216

Browse files
author
Damian Rouson
committed
Add missing error stop in alloc_comp_send...
1 parent 11b6972 commit a772216

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/tests/unit/send-get/alloc_comp_send_convert_nums.f90

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ program alloc_comp_send_convert_nums
8383
logical :: error_printed=.false.
8484

8585
associate(me => this_image(), np => num_images())
86-
if (np < 2) error stop 'Can not run with less than 2 images.'
86+
if (np < 2) error stop 'Cannot run with less than 2 images.'
8787

8888
int_scal_k1 = INT(42, 1)
8989
int_scal_k4 = 42
@@ -538,8 +538,15 @@ program alloc_comp_send_convert_nums
538538
call print_and_register( 'strided send int kind=4 to real kind=4 to image 2 failed')
539539
end if
540540

541-
sync all
542-
if (me == 1) print *, "Test passed."
541+
select case(me)
542+
case(1)
543+
if (error_printed) error stop
544+
sync images(2)
545+
print *, "Test passed."
546+
case(2)
547+
if (error_printed) error stop
548+
sync images(1)
549+
end select
543550
end associate
544551

545552
contains

0 commit comments

Comments
 (0)