]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: depcomp: ensure make_ok() fails when run_make fails
authorFrédéric Bérat <fberat@redhat.com>
Mon, 12 Dec 2022 06:32:13 +0000 (07:32 +0100)
committerMike Frysinger <vapier@gentoo.org>
Sun, 15 Jan 2023 21:51:44 +0000 (16:51 -0500)
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/depcomp.sh: Make make_ok fail when make fails.

t/ax/depcomp.sh

index 3c4db10e3c65cf429ffbeffd595d37967c087223..7a3ac63a77a989a0a64dd96b24bc21d6ab65ee4f 100644 (file)
@@ -160,7 +160,7 @@ case $depcomp_with_libtool in
     echo lib_LTLIBRARIES = libfoo.la >> Makefile.am
     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