We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e15996c commit 4d87eddCopy full SHA for 4d87edd
fpm/src/fpm.f90
@@ -330,7 +330,7 @@ subroutine cmd_run(settings,test)
330
end if
331
332
! Enumerate executable targets to run
333
- col_width = 10
+ col_width = -1
334
found(:) = .false.
335
allocate(executables(0))
336
do i=1,size(model%targets)
@@ -374,6 +374,16 @@ subroutine cmd_run(settings,test)
374
375
end do
376
377
+ ! Check if any apps/tests were found
378
+ if (col_width < 0) then
379
+ if (test) then
380
+ write(stderr,*) 'No tests to run'
381
+ else
382
+ write(stderr,*) 'No executables to run'
383
+ end if
384
+ stop
385
386
+
387
! Check all names are valid
388
if (any(.not.found)) then
389
0 commit comments