diff options
-rw-r--r-- | fpm/src/fpm.f90 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fpm/src/fpm.f90 b/fpm/src/fpm.f90 index e406747..e9d08d7 100644 --- a/fpm/src/fpm.f90 +++ b/fpm/src/fpm.f90 @@ -249,7 +249,8 @@ subroutine package_defaults(package) end if ! Populate test in case we find the default test directory - if (.not.allocated(package%test) .and. exists("test")) then + if (.not.allocated(package%test) .and. & + exists(join_path("test","main.f90"))) then allocate(package%test(1)) call default_test(package%test(1), package%name) endif |