From ca7cc85245ca6104994e69b01258f5dd74f7e5c7 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 11 Feb 2013 15:47:16 -0700 Subject: [PATCH] build: fix VPATH testsuite '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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/securityselinuxlabeltest.c b/tests/securityselinuxlabeltest.c index c0bb09b5bc..7445ab680f 100644 --- a/tests/securityselinuxlabeltest.c +++ b/tests/securityselinuxlabeltest.c @@ -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; } -- 2.39.5