automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [PATCH 10/11] [ng] check: few minor simplifications


From: Stefano Lattarini
Subject: [Automake-NG] [PATCH 10/11] [ng] check: few minor simplifications
Date: Wed, 9 May 2012 11:30:15 +0200

* lib/check.am (recheck): Don't remove $(TEST_SUITE_LOG) by hand, that is
already done automatically by the recursively-invoked rule 'check-TESTS'.
(check-TESTS): Don't check that $(TEST_SUITE_LOG) expands to a non-empty
string before removing it.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 lib/am/check.am |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/am/check.am b/lib/am/check.am
index 428242c..df2c40c 100644
--- a/lib/am/check.am
+++ b/lib/am/check.am
@@ -345,15 +345,12 @@ check-TESTS:
 ## OTOH, this means that, in the rule for '$(TEST_SUITE_LOG)', we
 ## cannot use '$?' to compute the set of lazily rerun tests, lest
 ## we rely on .PHONY to work portably.
-       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+       @rm -f $(TEST_SUITE_LOG)
        $(MAKE) $(TEST_SUITE_LOG)
 
 ## Recheck must depend on $(check_SCRIPTS), $(check_PROGRAMS), etc.
 ## It must also depend on the 'all' target.  See automake bug#11252.
 recheck: all %CHECK_DEPS%
-## See comments in the 'check-TESTS' recipe above for why we need
-## this manual removal.
-       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
        @bases='$(am__test_bases)'; \
 ## If running a "make recheck", we must only consider tests that had an
 ## unexpected outcome (FAIL or XPASS) in the earlier run.
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]