From: Damien Lespiau Date: Fri, 6 Sep 2013 10:44:41 +0000 (+0100) Subject: testdisplay: Provide a full path when opening pngs X-Git-Tag: intel-gpu-tools-1.5~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=951b37e2d0d69ef7c013bf3ee7a57f7d6bd15119;p=profile%2Fextras%2Fintel-gpu-tools.git testdisplay: Provide a full path when opening pngs This way one doesn't have to be in tests/ for testsdisplay to be able to open pass.png. Signed-off-by: Damien Lespiau --- diff --git a/tests/Makefile.am b/tests/Makefile.am index c7209af..99d98d6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -194,7 +194,10 @@ CLEANFILES = $(EXTRA_PROGRAMS) AM_CFLAGS = $(DRM_CFLAGS) $(CWARNFLAGS) \ -I$(srcdir)/.. \ - -I$(srcdir)/../lib + -I$(srcdir)/../lib \ + -DIGT_DATADIR=\""$(abs_srcdir)"\" \ + $(NULL) + LDADD = ../lib/libintel_tools.la $(PCIACCESS_LIBS) $(DRM_LIBS) testdisplay_SOURCES = \ diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 00d777a..df3b4d4 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -319,7 +319,7 @@ static void paint_output_info(struct connector *c, struct kmstest_fb *fb) } if (qr_code) - paint_image(cr, "./pass.png"); + paint_image(cr, IGT_DATADIR"/pass.png"); igt_assert(!cairo_status(cr)); }