>From 19ce9578f7dcbcf9f4e2dcbf8763601edd94cf68 Mon Sep 17 00:00:00 2001 Message-Id:
From: Stefano Lattarini Date: Tue, 3 Jan 2012 13:56:17 +0100 Subject: [PATCH] tests: fix spurious failures in 'pr300*.test' This change fixes automake bug#10426. * tests/pr300-lib.test: Call configure with an explicit '--libdir' option, to avoid spurious failures due to users possibly overriding '${libdir}' in ther config.site files. * tests/pr300-ltlib.test: Likewise. Reported by Bruno Haible. --- tests/pr300-lib.test | 7 ++++++- tests/pr300-ltlib.test | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/pr300-lib.test b/tests/pr300-lib.test index ee46b4b..8973af0 100755 --- a/tests/pr300-lib.test +++ b/tests/pr300-lib.test @@ -47,7 +47,12 @@ $ACLOCAL $AUTOCONF $AUTOMAKE --copy --add-missing -./configure --prefix "`pwd`/inst" +# We use pass '--libdir' explicitly, to avoid spurious failures due +# to users possibly overriding '${libdir}' in ther config.site files +# (for example, defining it to '${prefix}/lib64' on 64-bit systems). +# See automake bug#10426. +cwd=`pwd` || Exit 99 +./configure --prefix "$cwd/inst" --libdir "$cwd/inst/lib" $MAKE diff --git a/tests/pr300-ltlib.test b/tests/pr300-ltlib.test index c47f32e..ba9ce72 100755 --- a/tests/pr300-ltlib.test +++ b/tests/pr300-ltlib.test @@ -49,7 +49,12 @@ $ACLOCAL $AUTOCONF $AUTOMAKE --copy --add-missing -./configure --prefix "`pwd`/inst" +# We use pass '--libdir' explicitly, to avoid spurious failures due +# to users possibly overriding '${libdir}' in ther config.site files +# (for example, defining it to '${prefix}/lib64' on 64-bit systems). +# See automake bug#10426. +cwd=`pwd` || Exit 99 +./configure --prefix "$cwd/inst" --libdir "$cwd/inst/lib" $MAKE V=1 >stdout || { cat stdout; Exit 1; } cat stdout -- 1.7.7.3