[Top][All Lists]

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

[bug#59990] [PATCH] tests: depcomp: ensure make_ok() fails when run_make

From: Frederic Berat
Subject: [bug#59990] [PATCH] tests: depcomp: ensure make_ok() fails when run_make fails
Date: Mon, 12 Dec 2022 07:32:13 +0100

From: Frédéric Bérat <>

While running automake tests with -std-gnu=c99, the compiler report
errors which lead to make to fail. Yet, these failures are ignored
during the tests, which considers them to be successful as stderror is
check for one specific pattern.

If make fails, investigation should be made to discover why, whatever
the reason for the failure is.
 t/ax/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/ax/ b/t/ax/
index f23635086..e4e7565df 100644
--- a/t/ax/
+++ b/t/ax/
@@ -160,7 +160,7 @@ case $depcomp_with_libtool in
     echo lib_LTLIBRARIES = >>
     make_ok ()
-      run_make -M -- ${1+"$@"}
+      run_make -M -- ${1+"$@"} || return 1
       $FGREP 'unknown directive' output && return 1
       rm -f output
       # Checks for stray files possibly left around by less common

reply via email to

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