From c7cb06253e9ae53b951c2b3e8a2b5da981766d09 Mon Sep 17 00:00:00 2001 From: LKedward Date: Fri, 6 Nov 2020 11:50:22 +0000 Subject: Fix: default test logic --- fpm/src/fpm.f90 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3