X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=t%2Fgnits3.sh;h=eb7f9a71b8811349dbf55c11f529d7ea112ced27;hb=a7c00e1935726a32dca6871dd0f1b7eda28d0a5b;hp=f4797629db6f30d6a9891924f05699fe3da80bb7;hpb=8a5096d150cf9803b8963768b7366cd68edcce03;p=platform%2Fupstream%2Fautomake.git diff --git a/t/gnits3.sh b/t/gnits3.sh old mode 100755 new mode 100644 index f479762..eb7f9a7 --- a/t/gnits3.sh +++ b/t/gnits3.sh @@ -1,5 +1,5 @@ #! /bin/sh -# Copyright (C) 2002-2012 Free Software Foundation, Inc. +# Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ # Check that AM_INSTALLCHECK_STD_OPTIONS_EXEMPT works. required=cc -. ./defs || Exit 1 +. test-init.sh cat >> configure.ac << 'END' AC_PROG_CC @@ -83,12 +83,13 @@ mkdir build cd build # Use --program-prefix to make sure the std-options check honors it. -../configure "--prefix=`pwd`/../inst-dir" --program-prefix=p +../configure "--prefix=$(pwd)/../inst-dir" --program-prefix=p $MAKE $MAKE install -$MAKE installcheck && Exit 1 -$MAKE -k installcheck 2>stderr || : # Never trust the exit status of make -k. -cat stderr >&2 +$MAKE installcheck && exit 1 +# Don't trust th exit status of "make -k" for non-GNU makes. +if using_gmake; then status=FAIL; else status=IGNORE; fi +run_make -e $status -E -- -k installcheck $MAKE grep-stderr # Make sure there is no more error when all targets are exempted.