Make check-failing-test make macro more hygienic

Minor fix to avoid using the variable defined outside of the macro in its
expansion.

See #665.
This commit is contained in:
Vadim Zeitlin 2016-05-03 17:23:25 +02:00
commit b97612f1d6

View file

@ -714,7 +714,7 @@ check-cpp: $(CPP_TEST_CASES:=.cpptest)
check-cpp11: $(CPP11_TEST_CASES:=.cpptest)
check-failing-test = \
$(MAKE) -s $1.$2 >/dev/null 2>/dev/null && echo "Failing test $t passed."
$(MAKE) -s $1.$2 >/dev/null 2>/dev/null && echo "Failing test $1 passed."
check-failing:
+-$(foreach t,$(FAILING_C_TESTS),$(call check-failing-test,$t,ctest);)