Skip to content

Commit d9b970a

Browse files
Update test/fpm_test/test_filesystem.f90
Co-authored-by: Laurence Kedward <[email protected]>
1 parent 6a5590c commit d9b970a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/fpm_test/test_filesystem.f90

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,8 @@ subroutine check_rmdir(error, path)
170170
!> Directory path
171171
character(len=*), intent(in) :: path
172172

173-
logical :: stat
174-
175173
! Directory should exist before it's deleted
176-
stat = (is_dir(path) .eqv. .true.)
177-
if (.not. stat) then
174+
if (.not. is_dir(path)) then
178175
call test_failed(error, &
179176
"Directory path "//path//" doesn't exist before its deletion")
180177
end if

0 commit comments

Comments
 (0)