]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: fix VPATH testsuite
authorEric Blake <eblake@redhat.com>
Mon, 11 Feb 2013 22:47:16 +0000 (15:47 -0700)
committerEric Blake <eblake@redhat.com>
Mon, 11 Feb 2013 22:59:42 +0000 (15:59 -0700)
'make check' has been failing on VPATH builds since commit
907a39e7.  The tests already had magic for munging path names,
but were munging to the wrong location, thus working only on
an in-tree build.

* tests/securityselinuxlabeltest.c (testSELinuxMungePath): Munge
to correct path.

tests/securityselinuxlabeltest.c

index c0bb09b5bc9977f546e7482db68b2a01c081ecf8..7445ab680fa50a1fef60465e0f534d310623dad8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011-2012 Red Hat, Inc.
+ * Copyright (C) 2011-2013 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -61,7 +61,7 @@ testSELinuxMungePath(char **path)
     char *tmp;
 
     if (virAsprintf(&tmp, "%s/securityselinuxlabeldata%s",
-                    abs_srcdir, *path) < 0) {
+                    abs_builddir, *path) < 0) {
         virReportOOMError();
         return -1;
     }