@@ -54,9 +54,13 @@ program help_test
54
54
endif
55
55
! !write(*,*)findloc(page1,'NAME').eq.1
56
56
be= count (.not. tally)
57
- tally= [tally,count (page1.eq. ' NAME' ).eq. 1 ]
58
- tally= [tally,count (page1.eq. ' SYNOPSIS' ).eq. 1 ]
59
- tally= [tally,count (page1.eq. ' DESCRIPTION' ).eq. 1 ]
57
+ ! !mingw bug this returns 0
58
+ ! !tally=[tally,count(page1.eq.'NAME').eq.1]
59
+ ! !tally=[tally,count(page1.eq.'SYNOPSIS').eq.1]
60
+ ! !tally=[tally,count(page1.eq.'DESCRIPTION').eq.1]
61
+ tally= [tally,bugcount(page1,' NAME' ).eq. 1 ]
62
+ tally= [tally,bugcount(page1,' SYNOPSIS' ).eq. 1 ]
63
+ tally= [tally,bugcount(page1,' DESCRIPTION' ).eq. 1 ]
60
64
af= count (.not. tally)
61
65
if (be.ne. af)then
62
66
write (* ,* )' <ERROR>missing expected sections in ' ,names(i)
@@ -122,6 +126,17 @@ program help_test
122
126
write (* ,' (g0:,1x)' )' <INFO>TEST help SUBCOMMAND COMPLETE'
123
127
contains
124
128
129
+ function bugcount (page ,string )
130
+ character (len=* ),intent (in ) :: page(:)
131
+ character (len=* ),intent (in ) :: string
132
+ integer :: bugcount
133
+ integer :: i
134
+ bugcount= 0
135
+ do i = 1 ,size (page)
136
+ if (page(i).eq. string)bugcount= bugcount+1
137
+ enddo
138
+ end function bugcount
139
+
125
140
subroutine wipe (filename )
126
141
character (len=* ),intent (in ) :: filename
127
142
integer :: ios
0 commit comments