diff options
author | LKedward <laurence.kedward@bristol.ac.uk> | 2020-11-06 11:50:22 +0000 |
---|---|---|
committer | LKedward <laurence.kedward@bristol.ac.uk> | 2020-11-06 11:50:22 +0000 |
commit | c7cb06253e9ae53b951c2b3e8a2b5da981766d09 (patch) | |
tree | c6fd50bb24bd1a9dff0a33376158d91a33fdd962 | |
parent | 61edac7e20ea453ab7334969a85e9108dda2d401 (diff) | |
download | fpm-c7cb06253e9ae53b951c2b3e8a2b5da981766d09.tar.gz fpm-c7cb06253e9ae53b951c2b3e8a2b5da981766d09.zip |
Fix: default test logic
-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 |