From d38e1ac7130f404da8e81c9ad90802803cea9038 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Wed, 7 Jan 2015 11:02:46 +0100 Subject: [ng] tests: avoid a spurious failure with ${CC} lacking dep-tracking support * t/subobj-indir-pr13928.sh: Here: do not expect .Po files to be created in the .deps directories if the compiler is found not to support generation of dependency tracking information. Signed-off-by: Stefano Lattarini --- t/subobj-indir-pr13928.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/t/subobj-indir-pr13928.sh b/t/subobj-indir-pr13928.sh index 9a7116d35..7626996f8 100644 --- a/t/subobj-indir-pr13928.sh +++ b/t/subobj-indir-pr13928.sh @@ -44,8 +44,15 @@ $AUTOMAKE -a ./configure $MAKE -test -f s/.deps/foo.Po + +test -d s/.deps +if ! grep '^am_cv_CC_dependencies_compiler_type=none$' config.log; then + # This file is not created if the compiler does not support generation + # of dependency tracking information. + test -f s/.deps/foo.Po +fi find . | $FGREP '$(src)' && exit 1 + $MAKE distcheck : -- cgit v1.2.1