Signed-off-by: Eric Anholt <e...@anholt.net>
---
 test/Makefile.am            | 3 ++-
 test/scripts/xvfb-piglit.sh | 8 +++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/test/Makefile.am b/test/Makefile.am
index 5a35e2bb198f..4ccadf5b0005 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -26,7 +26,8 @@ TESTS = \
        $(NULL)
 
 TESTS_ENVIRONMENT = \
-       XSERVER_DIR=$(abs_top_builddir) \
+       XSERVER_DIR=$(abs_top_srcdir) \
+       XSERVER_BUILDDIR=$(abs_top_builddir) \
        $(XORG_MALLOC_DEBUG_ENV) \
        $(NULL)
 
diff --git a/test/scripts/xvfb-piglit.sh b/test/scripts/xvfb-piglit.sh
index 2a4e9405268d..b775239e34f5 100755
--- a/test/scripts/xvfb-piglit.sh
+++ b/test/scripts/xvfb-piglit.sh
@@ -20,12 +20,18 @@ if test "x$XSERVER_DIR" = "x"; then
     exit 1
 fi
 
+if test "x$XSERVER_BUILDDIR" = "x"; then
+    echo "XSERVER_BUILDDIR must be set to the build directory of the xserver 
repository."
+    # Exit as a real failure because it should always be set.
+    exit 1
+fi
+
 export PIGLIT_RESULTS_DIR=$PIGLIT_DIR/results/xvfb
 
 startx \
     $XSERVER_DIR/test/scripts/xinit-piglit-session.sh \
     -- \
-    $XSERVER_DIR/hw/vfb/Xvfb \
+    $XSERVER_BUILDDIR/hw/vfb/Xvfb \
         -noreset \
         -screen scrn 1280x1024x24
 
-- 
2.9.3

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to