automake-commit
[Top][All Lists]
Advanced

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

[automake-commit] branch master updated: tests: depcomp: ensure make_ok(


From: Mike Frysinger
Subject: [automake-commit] branch master updated: tests: depcomp: ensure make_ok() fails when run_make fails
Date: Sun, 15 Jan 2023 16:54:53 -0500

This is an automated email from the git hooks/post-receive script.

vapier pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=6d6fc91c472fd84bd71a1b012fa9ab77bd94efea

The following commit(s) were added to refs/heads/master by this push:
     new 6d6fc91c4 tests: depcomp: ensure make_ok() fails when run_make fails
6d6fc91c4 is described below

commit 6d6fc91c472fd84bd71a1b012fa9ab77bd94efea
Author: Frédéric Bérat <fberat@redhat.com>
AuthorDate: Mon Dec 12 07:32:13 2022 +0100

    tests: depcomp: ensure make_ok() fails when run_make fails
    
    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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/ax/depcomp.sh b/t/ax/depcomp.sh
index 3c4db10e3..7a3ac63a7 100644
--- a/t/ax/depcomp.sh
+++ b/t/ax/depcomp.sh
@@ -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



reply via email to

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