]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: improve testsuite results with older automake
authorEric Blake <eblake@redhat.com>
Wed, 15 Dec 2010 00:23:22 +0000 (17:23 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 20 Dec 2010 17:28:35 +0000 (10:28 -0700)
* tests/Makefile.am (TESTS_ENVIRONMENT, commandtest_CFLAGS)
(commandhelper_CFLAGS): Avoid $(builddir) and $(abs_builddir) in
automake 1.9.6; fixes spurious failures of commandtest.

tests/Makefile.am

index de2ff913db35cb60c369bd8e71ace373a329c2e2..69731d30af7b5f5835c4c7027b3e6d702d2ae6e7 100644 (file)
@@ -209,12 +209,12 @@ TESTS += cputest
 path_add = $$abs_top_builddir/src$(PATH_SEPARATOR)$$abs_top_builddir/daemon$(PATH_SEPARATOR)$$abs_top_builddir/tools
 
 # NB, automake < 1.10 does not provide the real
-# abs_top_{src/build}dir variables, so don't rely
+# abs_top_{src/build}dir or builddir variables, so don't rely
 # on them here. Fake them with 'pwd'
 TESTS_ENVIRONMENT =                            \
   abs_top_builddir=`cd '$(top_builddir)'; pwd` \
   abs_top_srcdir=`cd '$(top_srcdir)'; pwd`     \
-  abs_builddir=`cd '$(builddir)'; pwd`         \
+  abs_builddir=`pwd`                           \
   abs_srcdir=`cd '$(srcdir)'; pwd`             \
   CONFIG_HEADER="`cd '$(top_builddir)'; pwd`/config.h" \
   PATH="$(path_add)$(PATH_SEPARATOR)$$PATH"    \
@@ -356,12 +356,12 @@ nodeinfotest_LDADD = $(LDADDS)
 
 commandtest_SOURCES = \
        commandtest.c testutils.h testutils.c
-commandtest_CFLAGS = -Dabs_builddir="\"$(abs_builddir)\""
+commandtest_CFLAGS = -Dabs_builddir="\"`pwd`\""
 commandtest_LDADD = $(LDADDS)
 
 commandhelper_SOURCES = \
        commandhelper.c
-commandhelper_CFLAGS = -Dabs_builddir="\"$(abs_builddir)\""
+commandhelper_CFLAGS = -Dabs_builddir="\"`pwd`\""
 commandhelper_LDADD = $(LDADDS)
 
 if WITH_SECDRIVER_SELINUX