diff --git a/lib/am/check.am b/lib/am/check.am index 449708742..94021775e 100644 --- a/lib/am/check.am +++ b/lib/am/check.am @@ -416,8 +416,8 @@ check-TESTS: %CHECK_DEPS% ## we rely on .PHONY to work portably. @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG) @set +e; $(am__set_TESTS_bases); \ - log_list=`for i in $$bases; do echo $$i.log; done`; \ - trs_list=`for i in $$bases; do echo $$i.trs; done`; \ + log_list=`for i in $$bases; do test -x $$i && echo $$i.log; done`; \ + trs_list=`for i in $$bases; do test -x $$i && echo $$i.trs; done`; \ ## Remove newlines and normalize whitespace. Trailing (and possibly ## leading) whitespace is known to cause segmentation faults on ## Solaris 10 XPG4 make.