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 <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau 2013-09-06 11:44:41 +01:00
parent 5d99634913
commit 951b37e2d0
2 changed files with 5 additions and 2 deletions

View File

@ -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 = \

View File

@ -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));
}