@@ -88,7 +88,8 @@ subroutine test_exists_reg_file(error)
88
88
return
89
89
end if
90
90
91
- call check(error, t == type_regular_file, " exists incorrectly identifies type of reg files!" )
91
+ call check(error, t == type_regular_file, " exists incorrectly identifies type of &
92
+ reg files!: type=" // to_string(t))
92
93
93
94
if (allocated (error)) then
94
95
! Clean up: remove the file
@@ -123,17 +124,18 @@ subroutine test_exists_dir(error)
123
124
if (allocated (error)) then
124
125
! Clean up: remove the directory
125
126
call execute_command_line(" rmdir " // dirname, exitstat= ios, cmdstat= iocmd, cmdmsg= msg)
126
- call check(error, ios == 0 .and. iocmd == 0 , err% message // " and &
127
+ call check(error, ios == 0 .and. iocmd == 0 , err% message // " and &
127
128
& cannot cleanup test_exists_dir: " // trim (msg))
128
129
return
129
130
end if
130
131
131
- call check(error, t == type_directory, " exists incorrectly identifies type of directories!" )
132
+ call check(error, t == type_directory, " exists incorrectly identifies type of &
133
+ directories!: type=" // to_string(t))
132
134
133
135
if (allocated (error)) then
134
136
! Clean up: remove the directory
135
137
call execute_command_line(" rmdir " // dirname, exitstat= ios, cmdstat= iocmd, cmdmsg= msg)
136
- call check(error, ios == 0 .and. iocmd == 0 , err% message // " and &
138
+ call check(error, ios == 0 .and. iocmd == 0 , err% message // " and &
137
139
& cannot cleanup test_exists_dir: " // trim (msg))
138
140
return
139
141
end if
@@ -184,17 +186,18 @@ subroutine test_exists_symlink(error)
184
186
return
185
187
end if
186
188
187
- call check(error, t == type_symlink, " exists incorrectly identifies type of symlinks!" )
189
+ call check(error, t == type_symlink, " exists incorrectly identifies type of &
190
+ symlinks!: type=" // to_string(t))
188
191
189
192
if (allocated (error)) then
190
193
! Clean up: remove the link
191
194
call execute_command_line(" rm " // link_name, exitstat= ios, cmdstat= iocmd, cmdmsg= msg)
192
- call check(error, ios == 0 .and. iocmd == 0 , err% message // " and &
195
+ call check(error, ios == 0 .and. iocmd == 0 , err% message // " and &
193
196
& cannot delete link: " // trim (msg))
194
197
195
198
! Clean up: remove the target
196
199
close (iunit,status= ' delete' ,iostat= ios,iomsg= msg)
197
- call check(error, ios == 0 , err% message // " and cannot delete target: " // trim (msg))
200
+ call check(error, ios == 0 , err% message // " and cannot delete target: " // trim (msg))
198
201
return
199
202
end if
200
203
@@ -205,7 +208,7 @@ subroutine test_exists_symlink(error)
205
208
if (allocated (error)) then
206
209
! Clean up: remove the target
207
210
close (iunit,status= ' delete' ,iostat= ios,iomsg= msg)
208
- call check(error, ios == 0 , err% message // " and cannot delete target: " // trim (msg))
211
+ call check(error, ios == 0 , err% message // " and cannot delete target: " // trim (msg))
209
212
end if
210
213
end subroutine test_exists_symlink
211
214
0 commit comments