Skip to content

Commit c7cb062

Browse files
committed
Fix: default test logic
1 parent 61edac7 commit c7cb062

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fpm/src/fpm.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ subroutine package_defaults(package)
249249
end if
250250

251251
! Populate test in case we find the default test directory
252-
if (.not.allocated(package%test) .and. exists("test")) then
252+
if (.not.allocated(package%test) .and. &
253+
exists(join_path("test","main.f90"))) then
253254
allocate(package%test(1))
254255
call default_test(package%test(1), package%name)
255256
endif

0 commit comments

Comments
 (0)